Hi, I am having trouble with receiving emails from external email addresses like yahoo but have no problem with sending emails out. I have postfix installed and it's up and running. I also run Dovecot as IMAP server and Squirrelmail as my webmail. My server runs on Ubuntu 10.04 (lucid) Here is my main.cf # See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be used as the name. The Debian default # is /etc/mailname. #myorigin = /etc/mailname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = /usr/share/doc/postfix # TLS parameters #smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem #smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key #smtpd_use_tls=yes #smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache #smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. # myhostname = Ubuntu-MailServer.www.mycompany.com.au myhostname = www.mycompany.com.au alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases # myorigin = /etc/mailname myorigin = mycompany.com.au # mydestination = www.mycompany.com.au, Ubuntu-MailServer.www.mycompany.com.au, localhost.www.mycompany.com.au, localhost mydestination = www.mycompany.com.au, localhost, mycompany.com.au relayhost = mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/ html_directory = /usr/share/doc/postfix/html #smtpd_sasl_auth_enable = yes #smtpd_sasl_security_options = noanonymous #smtpd_sasl_local_domain = $myhostname #smtpd_sasl_application_name = smtpd #broken_sasl_auth_clients = yes # #smtpd_recipient_restriction = # permit_sasl_authenticated, # permit_mynetworks, # check_relay_domains # By the way, Ubuntu-MailServer is the name of the server. Below is the mail.log Dec 7 08:42:45 Ubuntu-MailServer postfix/smtpd[721]: connect from localhost[127.0.0.1] Dec 7 08:42:45 Ubuntu-MailServer postfix/smtpd[721]: 91D1FC02C2: client=localhost[127.0.0.1] Dec 7 08:42:45 Ubuntu-MailServer postfix/cleanup[724]: 91D1FC02C2: message-id=<[email protected]> Dec 7 08:42:45 Ubuntu-MailServer postfix/qmgr[26721]: 91D1FC02C2: from=<[email protected]ny.com.au>, size=978, nrcpt=1 (queue active) Dec 7 08:42:45 Ubuntu-MailServer postfix/smtpd[721]: disconnect from localhost[127.0.0.1] Dec 7 08:42:45 Ubuntu-MailServer dovecot: imap-login: Login: user=<bob.lie>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Dec 7 08:42:46 Ubuntu-MailServer dovecot: IMAP(bob.lie): Disconnected: Logged out bytes=878/447 Dec 7 08:42:46 Ubuntu-MailServer dovecot: imap-login: Login: user=<bob.lie>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Dec 7 08:42:46 Ubuntu-MailServer dovecot: IMAP(bob.lie): Disconnected: Logged out bytes=300/9176 Dec 7 08:42:47 Ubuntu-MailServer postfix/smtp[725]: 91D1FC02C2: host d.mx.mail.yahoo.com[209.191.88.254] refused to talk to me: 421 4.7.0 [GL01] Message from (58.6.27.148) temporarily deferred - 4.16.50. Please refer to http://postmaster.yahoo.com/errors/postmaster-21.html Dec 7 08:42:47 Ubuntu-MailServer postfix/smtp[725]: 91D1FC02C2: host b.mx.mail.yahoo.com[74.6.136.65] refused to talk to me: 421 4.7.0 [GL01] Message from (58.6.27.148) temporarily deferred - 4.16.50. Please refer to http://postmaster.yahoo.com/errors/postmaster-21.html Dec 7 08:42:50 Ubuntu-MailServer postfix/smtp[725]: 91D1FC02C2: to=<[email protected]>, relay=i.mx.mail.yahoo.com[74.6.140.64]:25, delay=4.5, delays=0.11/0/2.9/1.5, dsn=2.0.0, status=sent (250 ok dirdel) Dec 7 08:42:50 Ubuntu-MailServer postfix/qmgr[26721]: 91D1FC02C2: removed Dec 7 08:42:58 Ubuntu-MailServer dovecot: imap-login: Aborted login (tried to use disabled plaintext auth): rip=202.173.158.187, lip=58.6.27.148 Dec 7 08:44:14 Ubuntu-MailServer dovecot: last message repeated 2 times Dec 7 08:44:14 Ubuntu-MailServer dovecot: imap-login: Disconnected (tried to use disabled plaintext auth): rip=202.173.158.187, lip=58.6.27.148 Dec 7 08:44:26 Ubuntu-MailServer dovecot: imap-login: Disconnected (tried to use disabled plaintext auth): rip=202.173.158.187, lip=58.6.27.148 Dec 7 08:44:53 Ubuntu-MailServer dovecot: imap-login: Login: user=<bob.lie>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Dec 7 08:44:53 Ubuntu-MailServer dovecot: IMAP(bob.lie): Disconnected: Logged out bytes=339/1079 I was wondering if anyone might be able to tell me where I might have done it wrong in terms of main.cf configuration. Any help would be greatly appreciated. Thank you
Thanks Falco for your reply. I have checked it using the link you gave and the result is Checking xxx.xxx.xxx.xxx against 103 known blacklists... Listed 0 times with 4 timeouts So I think it's not blacklisted. Thanks in advance
Hi FalKo, Do you have a dynamic IP? No, I do not have a dynamic IP. What's happening here is I have a subnet 8 which is reserved for us by our broadband provider. I have a mail server running on windows XP Pro at the moment and because the machine has been running for more than 5 years, I am scared of the fact that it'd fall over any minutes. It has a static IP address such as 58.6.27.148 assigned to it. And now I have another spare server machine that I just bought recently and I was thinking of using it as replacement of the actual mail server. I decided to use Ubuntu Server 10.04 as my new mail server to replace the old current Mail Server. It has a static IP address assigned to it such as 58.6.27.150. After successfully having installed all the programs I need to be able to run it as a Mail Server, I went to test it to see if it works (both sending and receiving emails) before I can officially use it. The way I tested it is because our domain name (example.com) is hosted by dyndns.com. I logged into it to change the IP address as follows Before example.com -------> 58.6.27.148 After example.com -------> 58.6.27.150 I realized it would take about a minute to have the change to take effect. The way I know the change has taken place is to go to my webpage by typing in the IP address (58.6.27.150) in the address bar of browser. Then, I tested to see if I could send out emails to yahoo or other external email address and it worked but when I tried to use yahoo email address to reply back to my local email address, I did not receive it at all. I am not sure if I have done it the wrong way here. Is your server in a data center, or is it hosted on a DSL/cable line? yes, the server is in a data center. Hope my info will help you to help me out. Thank you in advance
Maybe my reply is coming a bit late, but do you have a correct MX record on your domain name ? I for example, removed mine some years ago and I had the same kind of problem