On Sun, Jun 16, 2013 at 04:44:02PM -0700, William Orr wrote:
> Hello, all!
>

Hello,


> I'm having some problems with aliases in smtpd, in that they're not
> properly resolving. I have a bunch of incoming mails stuck in the
> queue that dovecot (my MDA) refuses to deliver. The logs don't point
> to any problem reading or opening the aliases file.
> 
> Here is my smtpd.conf:
> #   $OpenBSD: smtpd.conf,v 1.6 2013/01/26 09:38:25 gilles Exp $
> 
> # This is the smtpd server system-wide configuration file.
> # See smtpd.conf(5) for more information.
> 
> av = "amavis"
> originating = "originating"
> dn = "worrbase.com"
> av_foreign = "lmtp://localhost:10024"
> av_origin = "lmtp://localhost:10026"
> dovecot = "lmtp://localhost:10110"
> 
> table aliases db:/etc/mail/aliases.db
> 
> # listen on smtp, submission and the amavis port
> # should be able to use tls almost all the time
> listen on fxp0 port smtp tls certificate mail
> listen on fxp0 port submission tls-require certificate mail auth \
>     tag $originating
> listen on lo port 10025 tag $av
> 
> # coming in from amavis
> accept tagged $av for domain $dn relay via $dovecot
> accept tagged $av for any relay
> 
> # coming in from the outside
> accept from any for domain $dn alias <aliases> relay via $av_foreign
> 
> # coming in from local
> accept for any alias <aliases> relay via $av_origin
> 
> # coming in from authed clients
> accept tagged $originating for any alias <aliases> relay via $av_origin
> 

Ok, there's a parse.y bug here that I'll be looking into.
You shouldn't be able to use "alias" in a relay rule, it is discarded.
What you want is to use local lmtp delivery, not lmtp relaying.

-- 
Gilles Chehade

https://www.poolp.org                                          @poolpOrg

Reply via email to