[Tfug] Re: Postfix mail gateway
Mike Morrell
mike at themorrells.org
Sun Jun 6 22:31:42 MST 2004
I figured it out and I wanted to post my mistake on the list in case
anyone else had the same problem later. I had made a mistake in how I
was forwarding the mail to amavis for filtering. I had the following,
content_filter = smtp-amavis:[localhost]:10024
which is wrong. For postfix brackets are used to denote IP addresses
and not names. It should have been
content_filter = smtp-amavis:localhost:10024
OR
content_filter = smtp-amavis:[127.0.0.1]:10024
Mike
On Sat, 2004-06-05 at 23:41, Mike Morrell wrote:
> I am finally setting up a mail gateway for my domain using postfix.
> Currently I only have postfix handiling mail for the gateway computer as
> a test. Whenever I send a message to my own domain or any ohter I get
> hte following error.
>
> gatekeeper postfix/smtp[10473]: 6DBE471A0C: to=<mike at themorrells.org>,
> relay=none, delay=0, status=bounced (localhost: No such file or
> directory)
>
> It appears that postfix is trying to handle all email locally instead
> of relaying. Whats funny is that the bounce for the undeleiverable mail
> gets deleivered.
>
> gatekeeper postfix/smtp[10476]: B27FD71A0B: to=<root at themorrells.org>,
> relay=192.168.0.8[192.168.0.8], delay=0, status=sent (250 ok 1086503555
> qp 2605)
>
>
> I want to relay all mail for my domain to mail.themorrells,s.org
> (192.168.0.8 internally). Here are some bits from the relevant configs.
>
> main.cf
> myorigin = themorrells.org
> myhostname = gatekeeper.themorrells.org
> mydomain = themorrells.org
> myorigin = themorrells.org
> mydestination = $myhostname, localhost.$mydomain, \
> themorrells.org
> mynetworks = 192.168.0.8/32
> biff = no
> smtpd_banner = gatekeeper.themorrells.org ESMTP
> local_transport = no local mail delivery
> local_recipient_maps =
> transport_maps = hash:/etc/postfix/transport
>
> transport
> themorrells.org smtp:[192.168.0.8]
>
>
> I did run postmap /etc/postfix/transport after creating the transport
> file. Can anyone give me some ideas of what I might have done wrong?
>
>
More information about the tfug
mailing list