postfix can't receive mails but can send mails
Hi all,
Server on VM, OS - Ubuntu 1004 server 64bit Host - Ubuntu 11.04 desktop 64bit Orcle VirtualBox I followed; Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 11.10) http://www.howtoforge.com/virtual-us...l-ubuntu-11.10 to build this server which will serve multiple domains. It can send mail but unables to receive mail. $ 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) On server VM terminal ===================== $ dig mail.mydomain.com Code:
On host terminal ================ $ dig mail.mydomain.com Code:
Code:
Server: xxx.xxx.xxx.xxx (ISP DNS) Pls help. TIA B.R. satimis |
Quote:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1605 <-- look here for status ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4 ;; QUESTION SECTION: ;www.mydomain.com. IN A ;; ANSWER SECTION: www.mydomain.com. 54 IN A _IP_ <-- the answer create your own dns |
Postfix is a smtp server and is used to send mails and if you are unable to receive mails configure a dovecot server for pop3 and imap
secondly your DNS is not replying to mail.mydomain so check your DNS. |
Quote:
$ dig mydomain.com Code:
; <<>> DiG 9.7.3 <<>> mydomain.com $ dig ser01.mydomain.com (server hostname) Code:
; <<>> DiG 9.7.3 <<>> ser01.mydomain.com On host of VirtualBox $ cat /etc/hosts Code:
127.0.0.1 ub1004 localhost.localdomain localhost B.R. satimis |
Quote:
Quote:
B.R. satimis |
I meant postfix is a smtp server so just configuring your machine with postfix will not help you in receiving mails
configure a dovecot server for the same |
Quote:
unable to receive mails means miss-config postfix post here main.config + master.config |
Quote:
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) $ cat /etc/postfix/master.cf Code:
satimis |
@deep27ak dovecot is configured in case you want to enable clients to fetch mails from mail server
@TS it seem your host is not getting resolved when you dig for mail.domain it must reply you with proper answer i.e. it must reply then IP address for your mail.domain it's only then mails can reach your server. make sure DNS is giving reply i.e. ANSWER SECTION when you make a query for host name of your mail server. and as far as your configuration file(/etc/postfix/main.cf) is concern it seems ok to me. ahh wait it seems you have already fixed DNS part! sorry you may ignore above part. another thing I've seen that you have enabled "relayhost =" directive I think it is not necessary in case you want your server to accept mails. To the best of my knowledge relayhost is used for forwarding mails to another mail server you might try commenting out that line. Thank you regards |
Quote:
Thanks for your advice. Tried it. 1) comment out the line "relayhost=" 2) restart /etc/postfix sent a mail to sales@mydomain.com. Failed $ tail /var/log/mail.log Code:
Feb 9 21:25:38 ser01 postfix/qmgr[1564]: 3B0C0A009A: from=<somebody@yahoo.com>, size=2966, nrcpt=1 (queue active) Sent another mail to sales@ser01.mydomain.com. Still failed $ tail /var/log/mail.log Code:
Feb 9 21:49:00 ser01 postfix/smtpd[2333]: connect from nm27-vm0.bullet.mail.sp2.yahoo.com[98.139.91.232] Code:
Host Points to Code:
email ser01.mydomain.com Code:
email mail.mydomain.com Code:
smtp ser01.mydomain.com Code:
smtp mail.mydomain.com Edit: mysql> SELECT * from transport; Code:
+-------------+-----------------------+ B.R. satimis |
All times are GMT -5. The time now is 01:27 PM. |