Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Oct 01, 2011 1:23 am 
Offline
Newbie

Joined: Sat Oct 01, 2011 1:13 am
Posts: 3
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.


Top
   
 Post subject:
PostPosted: Sat Oct 01, 2011 1:30 am 
Offline
Senior Newbie

Joined: Fri Sep 16, 2011 2:26 am
Posts: 5
Location: Minnesota, USA
Twitter: 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.


Top
   
 Post subject:
PostPosted: Sat Oct 01, 2011 3:52 am 
Offline
Newbie

Joined: Sat Oct 01, 2011 1:13 am
Posts: 3
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 wrote:
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.


Top
   
 Post subject:
PostPosted: Mon Oct 03, 2011 5:24 pm 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
tonyyarusso wrote:
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 wrote:
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


Top
   
 Post subject:
PostPosted: Fri Oct 07, 2011 12:30 am 
Offline
Newbie

Joined: Sat Oct 01, 2011 1:13 am
Posts: 3
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/dovecot-system-users-ubuntu-10.10-maverick]


Top
   
 Post subject:
PostPosted: Mon Oct 10, 2011 12:26 am 
Offline
Senior Newbie

Joined: Thu Feb 28, 2008 1:29 pm
Posts: 19
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.


Code:
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group