On Wed, 30 Apr 2008, Marc Dirix wrote:
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?
The config allows to have multiple parameters after eachother. So
you can concatenate $myhostname and a database query.
Right, so something like:
mydestination = localhost, $myhostname, mysql:/etc/postfix/sql-domains.cf
?
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?
Also here, you can add a second hash containing local users.
Except that's not what I want - I want to fall back on the default
behaviour of checking users from /etc/passwd if the local_recipient_maps
fails. Is there a way to do that?
However, IMHO there is no need for local users, just put them in DBMail
also.
The local users are mainly for admin accounts to make things easier (e.g.
I'm lazy and don't want to log into imap via a password with pine when I
can just read my mail as root from /var/spool/mail for things like
logwatch reports).
The dbmail handles what are effectively virtual domain/user accounts.
Gordan
_______________________________________________
DBmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail