Virtualmin/Webmin (Postfix) doesn't deliver to Google Apps (and others), need help...

8 posts / 0 new
Last post
#1 Thu, 06/21/2012 - 18:01
s3w47m88

Virtualmin/Webmin (Postfix) doesn't deliver to Google Apps (and others), need help...

Heya,

Virtualmin/Webmin (Postix) won't deliver outgoing messages to my Google Apps email address and a few other private email servers. However, it does deliver to my GMail as well as a private email account managed by a local ISP called Integra. Here is what /var/log/mail.log says:

Jun 21 22:51:57 localhost postfix/pickup[8110]: B6BFD801FB: uid=1088 from=<qey62jn2>
Jun 21 22:51:57 localhost postfix/cleanup[9936]: B6BFD801FB: message-id=<356b8f907ef19b0979612a78a37840ae@www.myclientdomain.com>
Jun 21 22:51:57 localhost postfix/qmgr[8111]: B6BFD801FB: from=<qey62jn2@mypersonaldomain.com>, size=585, nrcpt=1 (queue active)
Jun 21 22:51:57 localhost postfix/trivial-rewrite[9937]: warning: do not list domain mypersonaldomain.com in BOTH mydestination and virtual_alias_domains
Jun 21 22:51:57 localhost postfix/local[9938]: B6BFD801FB: to=<spencerhill@mypersonaldomain.com>, relay=local, delay=0.04, delays=0.03/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "spencerhill")
Jun 21 22:51:57 localhost postfix/cleanup[9936]: BE44180265: message-id=<20120621225157.BE44180265@www.mypersonaldomain.com>
Jun 21 22:51:57 localhost postfix/bounce[9939]: B6BFD801FB: sender non-delivery notification: BE44180265
Jun 21 22:51:57 localhost postfix/qmgr[8111]: BE44180265: from=<>, size=2547, nrcpt=1 (queue active)
Jun 21 22:51:57 localhost postfix/trivial-rewrite[9937]: warning: do not list domain mypersonaldomain.com in BOTH mydestination and virtual_alias_domains
Jun 21 22:51:57 localhost postfix/qmgr[8111]: B6BFD801FB: removed
Jun 21 22:51:58 localhost postfix/local[9938]: BE44180265: to=<qey62jn2@mypersonaldomain.com>, relay=local, delay=0.58, delays=0/0/0/0.58, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Jun 21 22:51:58 localhost postfix/qmgr[8111]: BE44180265: removed

Can anyone help me understand how to resolve this issue? Thank you!

Thu, 06/21/2012 - 22:04
andreychek

Howdy,

You'd want to make sure that if any domain is setup on your server, but has email elsewhere -- that in Edit Virtual Server -> Enabled Features, the "Mail for Domain" feature should be disabled. Otherwise, it would attempt to deliver the email locally.

-Eric

Fri, 06/22/2012 - 12:47
s3w47m88

Thanks for the response Eric. I went ahead and disabled it, then ran echo "test" | mail -s 'test 1' spencerhill@*.com without any success still.

Someone else suggested that I've been blacklisted, so I checked my website on MXToolBox.com and it said I was blacklisted on SpamCannibal. But I've never had to deal with black lists so I don't know what my next step should be, assuming this is even what's causing the issue.

Sun, 06/24/2012 - 22:24
s3w47m88

I came across this article that seems to indicate this is a common problem on Rackspace CloudServers.

http://www.rackspace.com/knowledge_center/index.php/Setting_up_a_Mail_Relay

But it doesn't explain how to set this up via Webmin/Virtualmin. I'm perfectly comfortable doing it from the command line but I know that Postfix is already installed, so I don't want to do stuff outside of Webmin/Virtualmin if it's going to cause problems.

Mon, 06/25/2012 - 08:12
andreychek

Howdy,

Although there isn't a way to do that from within Virtualmin -- that should work if done manually.

It looks like they're just setting up Postfix to handle relaying through a host that requires SASL authentication.

I'd recommend skipping straight to step #2 though, as you already have the various sasl tools installed (and it looks like they're installing something different from what you have installed there, but what you have already I think should work just fine).

All the Postfix configuration they're showing there should work just fine for you though. Let us know how that goes!

-Eric

Mon, 06/25/2012 - 16:36
s3w47m88

Thanks again for the reply Eric.

At this point I purchased an account with MailJet and setup their SMTP Relay service with the assistance of one of their techs over the phone and we're STILL not receiving messages to *@mydomain.com

We did confirm that we can deliver messages to other Google Apps domains though. And other clients are reporting they're receiving emails now. So it seems to be acute to theportlandcompany.com address.

Tue, 06/26/2012 - 10:40
andreychek

I know you included some logs above... but can you try sending another email to the one domain that's not working, and include what shows up in your mail log for that?

We should be able to use that to see how far the emails are getting -- are they getting to Google Apps, but not being delivered? Or are they hung up on your server somehow? Hopefully the logs can clear that up!

-Eric

Fri, 07/06/2012 - 17:13
s3w47m88

Certainly! Here is the latest error message found in mail.log:

Jul  6 22:01:13 www postfix/pickup[28275]: 14C59801F0: uid=0 from=<root>
Jul  6 22:01:13 www postfix/cleanup[31810]: 14C59801F0: message-id=<20120706220113.14C59801F0@www.mypersonaldomain.com>
Jul  6 22:01:13 www postfix/qmgr[28274]: 14C59801F0: from=<root@mypersonaldomain.com>, size=383, nrcpt=1 (queue active)
Jul  6 22:01:13 www postfix/local[32131]: 14C59801F0: to=<myemail@mypersonaldomain.com>, relay=local, delay=0.08, delays=0.06/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "spencerhill")
Jul  6 22:01:13 www postfix/cleanup[31810]: 1E677802AC: message-id=<20120706220113.1E677802AC@www.mypersonaldomain.com>
Jul  6 22:01:13 www postfix/bounce[32132]: 14C59801F0: sender non-delivery notification: 1E677802AC
Jul  6 22:01:13 www postfix/qmgr[28274]: 1E677802AC: from=<>, size=2267, nrcpt=1 (queue active)
Jul  6 22:01:13 www postfix/qmgr[28274]: 14C59801F0: removed
Jul  6 22:01:13 www postfix/local[32131]: 1E677802AC: to=<root@mypersonaldomain.com>, relay=local, delay=0.33, delays=0/0/0/0.33, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Jul  6 22:01:13 www postfix/qmgr[28274]: 1E677802AC: removed

I want to mention that I established an SMTP Relay service with MailJet and configured Webmin to utilize it. While it did seem to work, I was getting error messages like this:

/var/logs/mail.err: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
/var/logs/mail.log:
Jul  6 21:26:59 www postfix/smtpd[24339]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Jul  6 21:27:00 www postfix/master[1228]: warning: process /usr/lib/postfix/smtpd pid 24339 exit status 1
Jul  6 21:27:00 www postfix/master[1228]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jul  6 21:28:00 www postfix/smtpd[24494]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Jul  6 21:28:01 www postfix/master[1228]: warning: process /usr/lib/postfix/smtpd pid 24494 exit status 1
Jul  6 21:28:01 www postfix/master[1228]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
Jul  6 21:29:01 www postfix/smtpd[24597]: fatal: parameter "smtpd_recipient_restrictions": specify at least one working instance of: check_relay_domains, reject_unauth_destination, reject, defer or defer_if_permit
Jul  6 21:29:02 www postfix/master[1228]: warning: process /usr/lib/postfix/smtpd pid 24597 exit status 1
Jul  6 21:29:02 www postfix/master[1228]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling

So I've disabled it again so as to avoid those messages for now. I don't seem to get different results in terms of mail delivery.

Topic locked