My requirement for the mail server is as follows:
My mail should be accessible from “mail.mydomain.com”
>I would like to send mail from
alerts@mydomain.com to my users.
Now I have tried to do the above mentioned criteria using the link [http://library.linode.com/email/postfix/dovecot-system-users-ubuntu-10.10-maverick]
But when I tested the log file located at “/var/log/mail.log” it says
-----------------------------------------------------------------------------------------------------------------------------------------------
Sep 30 02:35:24 li354-70 postfix/smtpd[31370]: connect from localhost.localdomain[127.0.0.1]Sep 30 02:36:37 li354-70 postfix/smtpd[31370]: lost connection after UNKNOWN from localhost.localdomain[127.0.0.1]
Sep 30 02:36:37 li354-70 postfix/smtpd[31370]: disconnect from localhost.localdomain[127.0.0.1]
Sep 30 02:38:01 li354-70 postfix/smtpd[31370]: connect from localhost.localdomain[127.0.0.1]
Sep 30 02:41:16 li354-70 postfix/smtpd[31370]: 449F84CF06: client=localhost.localdomain[127.0.0.1]
Sep 30 02:43:00 li354-70 postfix/cleanup[31408]: 449F84CF06: message-id=<20110930064116.449F84CF06@mail.mydomain.com>
Sep 30 02:43:00 li354-70 postfix/qmgr[31310]: 449F84CF06: from=<ss@gmail.in>, size=408, nrcpt=1 (queue active)
Sep 30 02:43:13 li354-70 postfix/smtpd[31370]: disconnect from localhost.localdomain[127.0.0.1]
Sep 30 02:43:30 li354-70 postfix/smtp[31411]: connect to mail.mydomain.com[209.85.143.121]:25: Connection timed out
Sep 30 02:43:30 li354-70 postfix/smtp[31411]: 449F84CF06: to=<alerts@mail.mydomain.com>, orig_to=<alerts@mydomain.com>, relay=none, delay=185, delays=155/0.04/30/0, dsn=4.4.1, status=deferred (connect to mail.mydomain.com[209.85.143.121]:25: Connection timed out)
Sep 30 02:48:44 li354-70 postfix/qmgr[31310]: 449F84CF06: from=<ss@gmail.in>, size=408, nrcpt=1 (queue active)
Sep 30 02:49:14 li354-70 postfix/smtp[31423]: connect to mail.mydomain.com[209.85.143.121]:25: Connection timed out
Sep 30 02:49:14 li354-70 postfix/smtp[31423]: 449F84CF06: to=<alerts@mail.mydomain.com>, orig_to=<alerts@mydomain.com>, relay=none, delay=528, delays=498/0.02/30/0, dsn=4.4.1, status=deferred (connect to mail.mydomain.com[209.85.143.121]:25: Connection timed out)
Sep 30 02:53:05 li354-70 postfix/smtpd[31451]: warning: cannot get RSA certificate from file /etc/ssl/postfix.pem #/etc/ssl/certs/ssl-mail.pem: disabling TLS support
Sep 30 02:53:05 li354-70 postfix/smtpd[31451]: warning: TLS library problem: 31451:error:02001002:system library:fopen:No such file or directory:bss_file.c:356:fopen('/etc/ssl/postfix.pem #/etc/ssl/certs/ssl-mail.pem','r'):
-----------------------------------------------------------------------------------------------------------------------------------------------
I have also tried to test the mailing from the SSH using the following commands
1> root@mail:~# telnet mail.mydomain.com smtp
Result: Trying 127.0.0.1..
Connected to mydomain.com.
Escape character is '^]'.
220 mail.mydomain.com ESMTP Postfix (Ubuntu)
-->ehlo mydomain.com
250-mail.mydomain.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
-->mail from:<alerts@mydomain.com>
250 2.1.0 Ok
-->rcpt to:<ss@gmail.in>
554 5.7.1 <ss@gmail.in>: Relay access denied
I couldn’t able to figure out the exact problem for “Relay access denied”.
Can anyone please recommend me a possible solution to this.