[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix troubles



On Thu, Jun 29, 2000 at 01:19:06AM -0400, S.Salman Ahmed wrote:

> But then how come sending email to ssahmed@localhost sends it correctly
> to my local user account ? Why should root@localhost be treated/relayed
> any differently than ssahmed@localhost ?

Postfix does alias database rewrites at the local delivery stage.  What
is happening is that Postfix sees "foo@localhost" and tries to deliver
it locally.  If the account is just an account (as for your user
account) all is well.  If the account is an alias then Postfix replaces
the destination address with the address or addresses on the right hand
side of the alias and starts delivering them.  The problem is that your
aliases have no domain part so Postfix puts a default in but isn't
configured to deliver this default locally.

What are the values of mydestination, myorigin, myhostname and mydomain?  
What is the output of "hostname"?

A quick hack that should work around the problem would be to change your 
alias database to have right hand sides in user@localhost form.

> But if I remove the relayhost line from /etc/main.cf, how will I be able
> to send email to any other internet users e.g. this list, etc. ?

Removing the relayhost won't help at all.  By the time Postfix looks at
the relayhost it has already decided to try to deliver the mail
remotely.

-- 
Mark Brown  mailto:broonie@tardis.ed.ac.uk   (Trying to avoid grumpiness)
            http://www.tardis.ed.ac.uk/~broonie/
EUFS        http://www.eusa.ed.ac.uk/societies/filmsoc/

Attachment: pgpGS0jUTIRIW.pgp
Description: PGP signature


Reply to: