Jim Douglas wrote:
sending/receivin email is no problem, receivin for unknown recipients is
the problem.
I understand, you want postfix to only deliver mail to valid accounts.
But if you want postfix to check for valid email aadresses in the dbmail
database, then postfix has to be linked to mysql. Otherwise postfix just
doesn't know what this "mysql" in "local_recipient_maps =
mysql:/etc/postfix/sql-recipients.cf" means.
In the linked example the author uses "hash", which basically means the
aadresses are in that file. But when using mysql, postfix has to connect
to the mysql db and look there for the aliases.
So use ldd or see with what options/flags postfix was compiled with.
Anyway, if postfix knows how to use mysql, there's one more thing what
might be your problem. If you have an alias like "example.com" or
"@example.com" in the dbmail_aliases table, then postfix will accept all
mails, like [EMAIL PROTECTED] Get rid of that catch-all alias.
In main.cf I have these three lines:
receive_override_options = no_address_mappings
local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf
unknown_local_recipient_reject_code = 550
Alex