On Wed, 30 Apr 2008, Jesse Norell wrote:

local_recipient_maps = proxy:unix:passwd.byname $alias_maps \
              mysql:/etc/postfix/sql-recipients.cf

OK, that seems to work. However, now I'm not getting any deliveries
to
dbmail. dbmail user mail bounces after being accepted by postfix for
delivery (so the user retrieval list works for checking purposes). If
there is a user by the same name localy, that will receive the mail
instead of the virtual dbmail user, but a dbmail-only account doesn't
seem
to. Instead the mail bounces back as undeliverable with the message
that the user doesn't exist.

I thought specifying <mytestdomain> in /etc/postfix/transport and
pointing
that to dbmail's lmtp would suffice. Do I need to change something
else as well, like local_transport?

I tried talking directly to dbmail lmtp on port 24 and that correctly
accepts mail for existing users and rejects for non-existant users. So
the problem must be in the postfix configuration...

Do you have transport_maps set (in main.cf) to actually
use /etc/postfix/transport?  It doesn't by default.  If it does, maybe
the syntax is incorrect or something.  That should be all you need it
sounds like.

D'oh! Absolutely right, I didn't have transport_maps setting. :-/

But now I seem to have an issue that seems actually related to dbmail-lmtp:

Mail was bouncing and I was getting this in the logs:
Host or domain name not found. Name service error for name=localhost ty
pe=A: Host not found

I found a solution mentioned in a mailing list archive:
lmtp -o disable_dns_lookups=yes
in master.cf. This fixes it, but I'm at a loss as to why this was happening in the first place. I have a DNS server that resolves localhost., localhost.localdomain and both are in the hosts file. It also resolves correctly with dig, nslookup and host. What could be causing this problem?

Thanks.

Gordan
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail

Reply via email to