These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Postfix, designed by the devil? on the new forum.
I'm running CentOS 6.2. Try as I might I simply cannot get incoming mail to work on a virtual server. Here's the myriad of problems I'm unable to solve.
*Internal mail sends to others on the same server. Shows up ONLY in Postfix Mail Server section of Webmin when looking at User Mailboxes. Does not show up in Roundcube :/
No mail seems to make it to the server, I thought the problem was in the main.cf file at the line
inet_interfaces = localhost
which I changed to include the server IP address, but that just results in mail being bounced back by gmail or outlook live.
Delivered-To: <MyEmailAccount>@gmail.com Received: by 10.202.184.11 with SMTP id i11csp1375181oif; Tue, 16 Sep 2014 16:38:20 -0700 (PDT) X-Received: by 10.70.94.201 with SMTP id de9mr34625241pdb.103.1410910699795; Tue, 16 Sep 2014 16:38:19 -0700 (PDT) Return-Path: <> Received: from li251-129.localdomain ([2600:3c01::f03c:91ff:feae:4415]) by mx.google.com with ESMTP id so6si32049546pac.164.2014.09.16.16.38.19 for <<MyEmailAccount>@gmail.com>; Tue, 16 Sep 2014 16:38:19 -0700 (PDT) Received-SPF: none (google.com: li251-129.localdomain does not designate permitted sender hosts) client-ip=2600:3c01::f03c:91ff:feae:4415; Authentication-Results: mx.google.com; spf=neutral (google.com: li251-129.localdomain does not designate permitted sender hosts) smtp.mail= Received: by li251-129.localdomain (Postfix) id 6EBBE21517D; Tue, 16 Sep 2014 16:38:19 -0700 (PDT) Date: Tue, 16 Sep 2014 16:38:19 -0700 (PDT) From: MAILER-DAEMON@localdomain.localdomain (Mail Delivery System) Subject: Undelivered Mail Returned to Sender To: <MyEmailAccount>@gmail.com Auto-Submitted: auto-replied MIME-Version: 1.0 Content-Type: multipart/report; report-type=delivery-status; boundary="4DCD3215172.1410910699/li251-129.localdomain" Message-Id: <20140916233819.6EBBE21517D@li251-129.localdomain> This is a MIME-encapsulated message. --4DCD3215172.1410910699/li251-129.localdomain Content-Description: Notification Content-Type: text/plain; charset=us-ascii This is the mail system at host li251-129.localdomain. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <test-<MyDomainName>.com@localdomain.localdomain> (expanded from <test@<MyDomainName>.com>): Host or domain name not found. Name service error for name=localdomain.localdomain type=AAAA: Host not found --4DCD3215172.1410910699/li251-129.localdomain Content-Description: Delivery report Content-Type: message/delivery-status Reporting-MTA: dns; li251-129.localdomain X-Postfix-Queue-ID: 4DCD3215172 X-Postfix-Sender: rfc822; <MyEmailAccount>@gmail.com Arrival-Date: Tue, 16 Sep 2014 16:38:19 -0700 (PDT) Final-Recipient: rfc822; test-<MyDomainName>.com@localdomain.localdomain Original-Recipient: rfc822;test@<MyDomainName>.com Action: failed Status: 5.4.4 Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=localdomain.localdomain type=AAAA: Host not found --4DCD3215172.1410910699/li251-129.localdomain Content-Description: Undelivered Message Content-Type: message/rfc822 Return-Path: <<MyEmailAccount>@gmail.com> Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by li251-129.localdomain (Postfix) with ESMTP id 4DCD3215172 for <test@<MyDomainName>.com>; Tue, 16 Sep 2014 16:38:19 -0700 (PDT) Received: by mail-oa0-f54.google.com with SMTP id m19so504614oag.27 for <test@<MyDomainName>.com>; Tue, 16 Sep 2014 16:38:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:date:message-id:subject:from:to:content-type; bh=wAGrXgvUlLqChAjlWWPTYp9iLw6VuU5NXx2HI9BipN8=; b=qb7MqrDgYBHNCrJF8YeQ/6e9SUPq401UpQL4cwOnOtJzs4C4gyInjeD5UtWsKv3g/W pr1JaeM3D8bfp+k9mrS4joMldyC/vPK60vpZM3TfNNydQ+DOpzqJIinHuKEx3FOy/SAH gFB834RuZEXjGpwQ497hiZrO5w9Df/SQGH3wqIxDWkzjdphyf3eQxcw9stVNRZn7JxNi oWWttzS7fBzul/fROiwzDNPitxW1qAHwAJjEy7y/94FN/GVf5UsuFIk1JGGiYighZUx4 AYk6v7Zbd2mftjSvWxpzLfb1kzc/Pi0WaksrzjsugPHbeFx3vAXdVgIO7B53NxHaDr/u xi7A== MIME-Version: 1.0 X-Received: by 10.182.236.162 with SMTP id uv2mr39007039obc.12.1410910698910; Tue, 16 Sep 2014 16:38:18 -0700 (PDT) Received: by 10.202.184.11 with HTTP; Tue, 16 Sep 2014 16:38:18 -0700 (PDT) Reply-To: <MyEmailAccount>@gmail.com Date: Tue, 16 Sep 2014 16:38:18 -0700 Message-ID: <CADZm3zo=RUpPCCgPMo3jpuX1Y6f1aaTKj_k1ATESDnGtRKw2Rw@mail.gmail.com> Subject: ugh From: Jason <<MyEmailAccount>@gmail.com> To: test@<MyDomainName>.com Content-Type: multipart/alternative; boundary=001a11c2eb5204ba310503373f14 --001a11c2eb5204ba310503373f14 Content-Type: text/plain; charset=UTF-8 I really hate you postfix. --001a11c2eb5204ba310503373f14 Content-Type: text/html; charset=UTF-8 <div dir="ltr">I really hate you postfix.<br></div> --001a11c2eb5204ba310503373f14-- --4DCD3215172.1410910699/li251-129.localdomain--
Note, changing the line back to localhost without the IP, emails no longer bounce back but they aren't delivered either.
Howdy,
Try setting the "inet_interfaces" option in your main.cf to "all", that will cause it to listen on all interfaces.
Let us know if that solves some or all of the issues you're seeing; if there's any remaining, let us know which are still issues and we can work from there :-)
-Eric
I have made the change and restarted Postfix, no change.
I try to telnet to port 25 to the domain in question in the console and get
but I have no problem telnetting to 127.0.0.1 25
I've made certain that iptables is configured to allow outside traffic on port 25 but even with iptables OFF I'm unable to connect to port 25 using the domain name.tld.
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
So that's where I am. I am getting mail bounced back now with the change of inet_interfaces to all.
Howdy,
Just to verify, did you restart Postfix after changing that option?
Also, to verify that Postfix is indeed listening on all interfaces, you can run this command:
netstat -an | grep :25
Yes I did restart Postfix after making the change.
Howdy,
Hmm, it doesn't appear that Postfix is listening for connections other than localhost.
What is the output of these two commands:
/sbin/ifconfig
postconf -n | grep inet_interfaces
and
If it helps here's a bounced mail from my gmail account.
Just to be sure, could you try running this command:
/etc/init.d/postfix restart
After that, what is the output of this command:
netstat -an | grep :25
If Postfix still isn't listening on all interfaces, do you see any errors in "/var/log/maillog" that occur during or just after restarting Postfix?
-Eric
and
Here's the update in maillog after restarting.
There we go! Now it does appear to be listening on all interfaces (we can determine that by seeing it listen on "0.0.0.0").
Can you try accessing port 25 again, on your public IP address?
-Eric
Is there a difference in the commands "Service postfix restart" vs "/etc/init.d/postfix restart"? Seemed as though they accomplished the same thing but I guess not?
I am able to telnet in from my outside IP though so that's progress. Mail is still bouncing though back though. I'll include the latest bounced email below.
Before I paste that though I'd like to thank you for all the help I appreciate it very much.
So the mail log is finally producing something. Up til now it was just information on local users connecting/disconnecting if they were logged in to Roundmail.