On Sunday, November 22, 2009 at 17:34 CET,
     Sam Wootton <sam.woot...@gmail.com> wrote:

> I nearly have Postfix working on Opensuse 11.1.
> 
> For a non system account user, it works.  For example:
> 
> /var/mail/vhosts/samwootton.com/bruno
> 
> gets populated with incoming mail.  However, when i try to do the same
> for a system account user, it never reaches that message store.

Is it the same domain? Show logs.

> It was going in to /var/spool/mail/useraccount but i commented out:
> 
> mail_spool_directory
> 
> in mail.cf.

Doing so was most likely useless.

> Here are the rest of my settings:

Next time, post "postconf -n" output instead.

> *inet_interfaces = $myhostname, localhost*
> > *mydestination = $myhostname*
> > *virtual_mailbox_maps = hash:/etc/postfix/vmailmaps*
> > *local_recipient_maps = $virtual_mailbox_maps*
> > *local_transport = virtual*
> > *mynetworks_style = host*
> > *virtual_mailbox_domains = samwootton.com*
> > *virtual_mailbox_base = /var/mail/vhosts*

The cause of your problems may very well be that you're messing with
local_recipient_maps and local_transport in this manner. There are very
few occasions where such a configuration makes any sense, and this is
most likely not one of them. You need to read up on address classes.

List local domains in mydestination.
List virtual mailbox domains in virtual_mailbox_domains.
List virtual alias domains in virtual_alias_domains.
List relay domains in relay_domains.

Unless you have a single domain that contains users in two or more of
these address classes, getting the above right is all it takes.

> I have commented out 'mailbox_transport' completely.

That doesn't make any difference as you're not using local(8) at all.

> Here is my vmailmaps:
> 
> s...@samwootton.com samwootton.com/sam
> 
> Could anyone help me fix this problem?  Just to clarify, i can get non
> system account mail being delivered, but not a system account.
> 
> I'm guessing it is still using the default delivery agent for that on
> system account?  A delivery agent that looks inside /etc/passwd and
> /etc/aliases files?

Until you show us logs we can only guess. Throw in full "postconf -n"
output while you're at it.

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to