From: Aleksander <[EMAIL PROTECTED]>
Reply-To: DBMail mailinglist <[email protected]>
To: DBMail mailinglist <[email protected]>
Subject: Re: [Dbmail] restrict email
Date: Thu, 31 Aug 2006 16:57:03 +0300

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
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail


Alex,

 It was the "@mydomain.com" entry that was doing it..

Now I'm wondering what other Postfix commands I don't need because dbmail is taking care of it,

smtpd_helo_required = yes
disable_vrfy_command = yes

smtpd_recipient_restrictions =
   reject_invalid_hostname,
   reject_non_fqdn_hostname,
   reject_non_fqdn_sender,
   reject_non_fqdn_recipient,
   reject_unknown_sender_domain,
   reject_unknown_recipient_domain,
   permit_mynetworks,
   reject_unauth_destination,
   reject_rbl_client relays.ordb.org,
   reject_rbl_client list.dsbl.org,
   reject_rbl_client sbl.spamhaus.org,
   reject_rbl_client cbl.abuseat.org,
   reject_rbl_client dul.dnsbl.sorbs.net,
   reject_rbl_client proxies.relays.monkeys.com
   reject_rbl_client opm.blitzed.org
   reject_rbl_client dnsbl.njabl.org
   reject_rbl_client blackholes.wirehub.net
   reject_rbl_client list.dsbl.org
   permit

smtpd_data_restrictions =
   reject_unauth_pipelining,
   permit


Thanks,
Jim


Reply via email to