Make virtualmin edit /etc/postfix/virtual

4 posts / 0 new
Last post
#1 Fri, 04/06/2007 - 21:20
kcackler

Make virtualmin edit /etc/postfix/virtual

OK - I've almost got postfix up and running again. I'm attempting to set it up to use the Maildir format, and I'm oh so close.

Virtualmin is setting up the addresses fine and the mappings as well. The problem is that postfix is only receiving mail for domains listed in the mydestination parameter. Example:

Attempt to send mail to kevin@atunscs.com - BOUNCE Add atunscs.com to mydestination Send again - RECEIVED Attempt to send mail to non-existing@atunscs.com - BOUNCE, unknown user

So obviously postfix is using the virtual users file, because it bounces the mail when the user doesn't exist. The only problem is that I'm having to list all of the domains in the mydestination parameter in order for it to deliver to them, and I know that's not right.

Any ideas here? Kevin

Fri, 04/06/2007 - 21:31
kcackler

Ugh...the title is wrong. Don't know what I was thinking when I typed that. Also, that first bounce should be

PERM_FAILURE: SMTP Error (state 9): 554 5.7.1 kevin@atunscs.com: Relay access denied

So basically postfix just doesn't know that it's supposed to be receiving mail for these virtual domains and I'm not sure how to tell it to.

Fri, 04/06/2007 - 21:34
kcackler

OK, figured it out. By adding $mydomain to the mydestination, the machine is now receiving mail for all of the hosted domains....AND it's a closed relay...how exciting

Fri, 04/06/2007 - 21:37
kcackler

Spoke too soon. By adding $mydomain to the mydestination parameter, it effectively OPENS POSTFIX! This is what had opened me up before.

Unfortunately, I'm now in the same predicment....Postfix won't accept mail unless I explicitly tell it to....

Topic locked