#1  
Old 7th February 2012, 13:05
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.

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) running on VM or Oracle VirtualBox


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
$ dig mydomain.com mx
Code:
; <<>> DiG 9.7.3 <<>> mydomain.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55645
;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 2, ADDITIONAL: 5

;; QUESTION SECTION:
;mydomain.com.			IN	MX

;; ANSWER SECTION:
mydomain.com.		3600	IN	MX	10 ser01.mydomain.com.
mydomain.com.		3600	IN	MX	20 smtp.secureserver.net.
mydomain.com.		3600	IN	MX	30 mailstore1.secureserver.net.

;; AUTHORITY SECTION:
mydomain.com.		2636	IN	NS	ns26.domaincontrol.com.
mydomain.com.		2636	IN	NS	ns25.domaincontrol.com.

;; ADDITIONAL SECTION:
ser01.mydomain.com. 2896	IN	A	xxx.xxx.xxx.xxx
smtp.secureserver.net.	4	IN	A	216.69.186.201
mailstore1.secureserver.net. 4	IN	A	72.167.238.201
ns25.domaincontrol.com.	49235	IN	A	216.69.185.13
ns26.domaincontrol.com.	49235	IN	A	208.109.255.13

;; Query time: 53 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Tue Feb  7 19:41:48 2012
;; MSG SIZE  rcvd: 253
$ dig ser01.mydomain.com mx
Code:
; <<>> DiG 9.7.3 <<>> ser01.mydomain.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 44137
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ser01.mydomain.com.	IN	MX

;; AUTHORITY SECTION:
mydomain.com.		900	IN	SOA	ns25.domaincontrol.com. dns.jomax.net. 2012020702 28800 7200 604800 3600

;; Query time: 54 msec
;; SERVER: 192.168.0.1#53(192.168.0.1)
;; WHEN: Tue Feb  7 19:43:39 2012
;; MSG SIZE  rcvd: 109

$ dig mail.mydomain.com mx
Code:
; <<>> DiG 9.7.3 <<>> mail.mydomain.com mx
;; global options: +cmd
;; connection timed out; no servers could be reached

On server (VM) terminal
=======================

$ dig mail.mydomain.com mx
Code:
; <<>> DiG 9.7.0-P1 <<>> mail.mydomain.com mx
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 25279
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.              IN      MX

;; AUTHORITY SECTION:
mydomain.com.            2750    IN      SOA     ns25.domaincontrol.com. dns.jomax.net. 2012020702 28800 7200 604800 3600

;; Query time: 33 msec
;; SERVER: 202.14.67.4#53(202.14.67.4)
;; WHEN: Tue Feb  7 19:45:07 2012
;; MSG SIZE  rcvd: 102


Pls help. TIA


B.R.
satimis
Reply With Quote
Sponsored Links
  #2  
Old 8th February 2012, 19:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

You need an A record for mail.mydomain.com. What does
Code:
dig mail.mydomain.com
show?
__________________
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, 03:44
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
You need an A record for mail.mydomain.com.
According to your Howto on;
Code:
13 Populate The Database And Test
If you want to make entries in the other two tables, that would look like this:
...
I already did
Code:
INSERT INTO `transport` (`domain`, `transport`) VALUES ('mydomain.com', 'smtp:mail.mydomain.com');
mysql> SELECT * from transport;
Code:
+-------------+-----------------------+
| domain      | transport             |
+-------------+-----------------------+
| mydomain.com | smtp:mail.mydomain.com |
+-------------+-----------------------+
1 row in set (0.00 sec)
Quote:
What does
Code:
dig mail.mydomain.com
show?
After hours of working now it comes to following state:

$ tail /var/log/mail.log
Code:
Feb  9 10:04:43 ub1004ser02 postfix/qmgr[1809]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active)
Feb  9 10:04:43 ub1004ser02 postfix/smtp[1880]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused
Feb  9 10:04:43 ub1004ser02 postfix/smtp[1880]: 3B0C0A009A: to=<sales@mydomain.com>, relay=none, delay=1136, delays=1136/0/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)
Feb  9 10:04:43 ub1004ser02 postfix/smtpd[1872]: connect from e-bs.regit.ru[91.190.232.8]
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: NOQUEUE: reject: RCPT from e-bs.regit.ru[91.190.232.8]: 550 5.1.1 <mail@mydomain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<labelling@kneeplace.com> to=<mail@mydomain.com> proto=SMTP helo=<e-bs.regit.ru>
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: lost connection after RCPT from e-bs.regit.ru[91.190.232.8]
Feb  9 10:04:44 ub1004ser02 postfix/smtpd[1872]: disconnect from e-bs.regit.ru[91.190.232.8]
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection rate 1/60s for (smtp:206.72.127.11) at Feb  9 10:03:37
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max connection count 1 for (smtp:206.72.127.11) at Feb  9 10:03:37
Feb  9 10:08:04 ub1004ser02 postfix/anvil[1875]: statistics: max cache size 1 at Feb  9 10:03:37

On server VM terminal
=====================
$ dig mail.mydomain.com
Code:
; <<>> DiG 9.7.0-P1 <<>> mail.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 33735
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.              IN      A

;; AUTHORITY SECTION:
mydomain.com.            3599    IN      SOA     ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600

;; Query time: 19 msec
;; SERVER: 202.14.67.4#53(202.14.67.4) (ISP DNS)
;; WHEN: Thu Feb  9 10:16:27 2012
;; MSG SIZE  rcvd: 102

On host terminal
================

$ dig mail.mydomain.com
Code:
; <<>> DiG 9.7.3 <<>> mail.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 49391
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mail.mydomain.com.		IN	A

;; AUTHORITY SECTION:
mydomain.com.		3510	IN	SOA	ns25.domaincontrol.com. dns.jomax.net. 2012020704 28800 7200 604800 3600

;; Query time: 18 msec
;; SERVER: 202.14.67.4#53(202.14.67.4) (ISP DNS)
;; WHEN: Thu Feb  9 10:17:56 2012
;; MSG SIZE  rcvd: 102

B.R.
satimis

Last edited by satimis; 9th February 2012 at 04:44.
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 13:31
SquirrelMail login not working glenneh Installation/Configuration 13 9th April 2011 20:01
ERROR: Connection dropped by IMAP server. [Centos 5.4, courier imap,squirrel, etc] darevil HOWTO-Related Questions 7 9th June 2010 14:49
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39


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


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