Send mail configuration problem with Postfix on Ubuntu 10.10

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 … 0-maverick">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.

5 Replies

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.

Hi tony,

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

I am sending mail from linode/server. For sending/receiving mail i have installed the postfix and follow the steps as mentioned

[http://library.linode.com/email/postfix … 0-maverick">http://library.linode.com/email/postfix/dovecot-system-users-ubuntu-10.10-maverick]

The fact that you cannot relay from localhost indicates you have an IP trust issue. The fact that Postfix is attempting to connect to your public IP to relay internally indicates a domain authority config issue is also likely present as well. Post what you have configured in your main.cf for the any and all of the following parameters that are in your config – you likely won't have a couple of them.

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct