Send mail configuration problem with Postfix on Ubuntu 10.10
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 [
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=<
Sep 30 02:43:00 li354-70 postfix/qmgr[31310]: 449F84CF06: from=<
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=<
Sep 30 02:48:44 li354-70 postfix/qmgr[31310]: 449F84CF06: from=<
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=<
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:<
250 2.1.0 Ok
-->rcpt to:<
554 5.7.1 <
I couldn’t able to figure out the exact problem for “Relay access denied”.
Can anyone please recommend me a possible solution to this.
5 Replies
Actually i am just testing the functionality with my email address. I have seen the Mx record of the mail server it currently relay through google but i think it should be changed. I have also deleted the Mx record from the control panel. But it still showing information about the google. Don't know what to do.
If you need any more information to understand the issue plz let me know. Thanks
@tonyyarusso:
Is your server trying to relay through GMail, or were you only sending to a GMail address? It would also be helpful to include the real domain name.
@tonyyarusso:
Is your server trying to relay through GMail, or were you only sending to a GMail address? It would also be helpful to include the real domain name.
You didn't answer the question. Are you sending from your domain from your linode/server?
@sanjib:
I have also deleted the Mx record from the control panel.
The MX record is used for delivery to your domain, not for sending. It looks to me your problem is with authorization to relay mail. Hopefully someone with some postfix experience will be able to provide you with a hint to your solution.
–
Travis
[
mynetworks
smtpd_helo_restrictions
smtpd_sender_restrictions
smtpd_recipient_restrictions
mydestination
relay_domains
virtual_alias_domains
virtual_mailbox_domains
On a side note, your SSL cert is not where you have told Postfix to locate it – /etc/ssl/postfix.pem.