I decided to have a go at getting postfix to work with this instead of sendmail as per the suggestion that was made here, and I still have a few problems. This is probably more of a postfix question rather than dbmail, but I'm figuring that it would be a common setup with dbmail so someone here might know the answers.

In /etc/postfix/transport I have:
mytestdomain    dbmail-lmtp:localhost:24

I want localhost/myhostname (as set by default from gethostname()) to be delivered "locally" (i.e. to /var/spool/mail/<username>), but I want mytestdomain to be delivered via dbmail.

If I set mytestdomain in mydestination, I can deliver to it. Otherwise I just get relaying denied. Is there a reasonably sane way to have mydestination set so that the list comes from the dbmail mysql backend while still including local host names ($myhostname, localhost) for /var/spool/mail delivery?

However, I also have to set, in main.cf
local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf

where sql-recipients.cf is the mysql access config file as per the dbmail wiki. This works fine for dbmail users, but it also causes local recipients to get rejected (e.g. [EMAIL PROTECTED]). Is there a way to additionally add local users to the allowed map?

Thanks.

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

Reply via email to