#1  
Old 7th February 2012, 08:37
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default Postfix fails to receive mail

Hi all,

postfix can send mail but fails to receive mail.

server runs on a VM of Oracle VirtualBox
fixed ip address
hostname - ser01.mydomain.com
On router - ports 25/443/995/80/8080/etc. pointing to 192.168.0.218 (local ip of the server)

I was following;
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10)
http://www.howtoforge.com/virtual-us...l-ubuntu-11.10

building this server on ubuntu-10.04 (LTS)


1)
sent 1st mail to server on yahoo mail.
sales@mydomain.com

Failed

# tail /var/log/mail.log
Code:
Feb  7 13:40:11 ser01 amavis[1106]: (01106-02) Passed CLEAN, [98.139.91.228] [xxx.xxx.xxx.xxx] <somebody@yahoo.com> -> <sales@mydomain.com>, Message-ID: <1328593199.63314.YahooMailNeo@web113203.mail.gq1.yahoo.com>, mail_id: c5+qVqqIhNZV, Hits: 0.992, size: 2971, queued_as: 8D257A009E, dkim_id=@yahoo.com,somebody@yahoo.com, 9518 ms
Feb  7 13:40:11 ser01 postfix/smtp[1954]: 78712A0018: to=<sales@mydomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=10, delays=0.78/0/0/9.5, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01106-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 8D257A009E)
Feb  7 13:40:11 ser01 postfix/qmgr[1837]: 78712A0018: removed
Feb  7 13:40:11 ser01 postfix/smtp[1960]: 8D257A009E: to=<sales@mydomain.com>, relay=none, delay=0.06, delays=0.02/0/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mail.mydomain.com type=A: Host not found)
Feb  7 13:40:11 ser01 postfix/cleanup[1953]: 9DD18A009F: message-id=<20120207054011.9DD18A009F@ser01.mydomain.com>
Feb  7 13:40:11 ser01 postfix/bounce[1961]: 8D257A009E: sender non-delivery notification: 9DD18A009F
Feb  7 13:40:11 ser01 postfix/qmgr[1837]: 9DD18A009F: from=<>, size=5501, nrcpt=1 (queue active)
Feb  7 13:40:11 ser01 postfix/qmgr[1837]: 8D257A009E: removed
Feb  7 13:40:14 ser01 postfix/smtp[1960]: 9DD18A009F: to=<somebody@yahoo.com>, relay=mta6.am0.yahoodns.net[66.94.236.34]:25, delay=2.7, delays=0/0/1.1/1.7, dsn=2.0.0, status=sent (250 ok dirdel)
Feb  7 13:40:14 ser01 postfix/qmgr[1837]: 9DD18A009F: removed
2)
sent 2nd mail to server on yahoo mail.
sales@ser01.mydomain.com

# tail /var/log/mail.log
Code:
Feb  7 13:28:06 ser01 postfix/smtpd[1931]: warning: cannot get RSA private key from file /etc/postfix/smtpd.key: disabling TLS support
Feb  7 13:28:06 ser01 postfix/smtpd[1931]: warning: TLS library problem: 1931:error:0906D06C:PEM routines:PEM_read_bio:no start line:pem_lib.c:650:Expecting: ANY PRIVATE KEY:
Feb  7 13:28:06 ser01 postfix/smtpd[1931]: warning: TLS library problem: 1931:error:140B0009:SSL routines:SSL_CTX_use_PrivateKey_file:PEM lib:ssl_rsa.c:669:
Feb  7 13:28:09 ser01 postfix/smtpd[1931]: warning: 122.179.144.143: hostname ABTS-mum-Dynamic-143.144.179.122.airtelbroadband.in verification failed: Name or service not known
Feb  7 13:28:09 ser01 postfix/smtpd[1931]: connect from unknown[122.179.144.143]
Feb  7 13:28:10 ser01 postfix/smtpd[1931]: NOQUEUE: reject: RCPT from unknown[122.179.144.143]: 550 5.1.1 <mydomain@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<kphrfysejngwdu@angelpuss.org> to=<mydomain@mydomain.com> proto=SMTP helo=<angelpuss.org>
Feb  7 13:28:10 ser01 postfix/smtpd[1931]: disconnect from unknown[122.179.144.143]
Feb  7 13:31:30 ser01 postfix/anvil[1934]: statistics: max connection rate 1/60s for (smtp:122.179.144.143) at Feb  7 13:28:09
Feb  7 13:31:30 ser01 postfix/anvil[1934]: statistics: max connection count 1 for (smtp:122.179.144.143) at Feb  7 13:28:09
Feb  7 13:31:30 ser01 postfix/anvil[1934]: statistics: max cache size 1 at Feb  7 13:28:09
Pls help. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2012, 20:41
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Feb 7 13:40:11 ser01 postfix/smtp[1960]: 8D257A009E: to=<sales@mydomain.com>, relay=none, delay=0.06, delays=0.02/0/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=mail.mydomain.com type=A: Host not found)
Please create an A record for mail.mydomain.com.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 9th February 2012, 04:34
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
Please create an A record for mail.mydomain.com.
Hi,

According to
Code:
13 Populate The Database And Test
If you want to make entries in the other two tables, that would look like this:
in your Howto, I already did;

Code:
INSERT INTO `transport` (`domain`, `transport`) VALUES ('mydomain.com', 'smtp:mail.mydomain.com');
creating the record.

mysql> SELECT * from transport;
Code:
+-------------+-----------------------+
| domain      | transport             |
+-------------+-----------------------+
| mydomain.com | smtp:mail.mydomain.com |
+-------------+-----------------------+
1 row in set (0.00 sec)
B.R.
satimis

Last edited by satimis; 9th February 2012 at 05:42.
Reply With Quote
  #4  
Old 9th February 2012, 13:40
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

No, I mean a DNS record (an A record).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 9th February 2012, 13:52
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko View Post
No, I mean a DNS record (an A record).
On domain register website
Code:
Host	Points to
@	xxx.xxx.xxx.xxx (fixed ip)
ser01	xxx.xxx.xxx.xxx (fixed ip)

CNAME (Alias)
Host	Points to
e	ser01.mydomain.com
email	ser01.mydomain.com
imap	imap.secureserver.net
pop	ser01.mydomain.com
smtp	ser01.mydomain.com
webmail	ser01.mydomain.com
www	@

MX (Mail Exchanger)
Priority	Host	Points
30		@	mailstore1.secureserver.net
20		@	smtp.secureserver.net
10		@	ser01.mydomain.com
Whether change
Code:
email	ser01.mydomain.com
to
Code:
email	mail.mydomain.com

OR
Code:
smtp	ser01.mydomain.com
to
Code:
smtp	mail.mydomain.com
?

Thanks


Edit:

Performed following step on Register's website
Under A(Host)
--> Quick Add

Host - mail.mydomain.com
Points to - xxx.xxx.xxx.xxx (fixed ip)

-> Save Zone File

After saving "mail.mydomain.com" becomes "mail" (mydomain.com hidden)

Now under "A(Host)"
Host Points to
Code:
@	xxx.xxx.xxx.xxx (fixed ip)
mail	xxx.xxx.xxx.xxx (fixed ip)
ser01	xxx.xxx.xxx.xxx (fixed ip)
I do hope that I understand your advice correctly A record = A(Host) on my Register's website. If I'm wrong please correct me. Thanks.

Now I'm waiting the change to propagate.

B.R.
satimis

Last edited by satimis; 10th February 2012 at 05:56.
Reply With Quote
  #6  
Old 10th February 2012, 17:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by satimis View Post
I do hope that I understand your advice correctly A record = A(Host) on my Register's website.
Yes, that's correct.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail-Problema jz_ HOWTO-Related Questions 9 14th September 2011 14:31
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 21:01
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 15:49
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 15:33
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 18:39


All times are GMT +2. The time now is 17:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.