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 10:27:37 +0300
Jim Douglas wrote:
I have, local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf In
main.cf and I'm still able to recieve mail to users not listed in
dbmail_users and dbmail_aliases?
Is there another setting somewhere ?
What's the contents of sql-recipients.cf? Are the passwords etc correct?
Does postfix at all have mysql support? To check it you can do:
# ldd `which postfix` | grep -i my
You should get something like this:
libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0x401a1000)
If you don't, then you have to install a postfix-mysql package from your
distro. If there ain't none, then you have to recompile postfix yourself. I
had to do so for SLES9.
HTH,
Alex
_______________________________________________
Dbmail mailing list
[email protected]
https://mailman.fastxs.nl/mailman/listinfo/dbmail
sending/receivin email is no problem, receivin for unknown recipients is the
problem...here's the mysql:/etc/postfix/sql-recipients.cf
user = dbmail
password = mypass
hosts = localhost
dbname = dbmail
table = dbmail_aliases
select_field = alias
where_field = alias
I was reading this article,
http://www.postfix.org/securityportal.200011/closet20001122.html
..and hoping there was a way to 'check_recipient_access' in dbmail rather
than maintaining a "access-inbound" file...
smtpd_sender_restrictions = check_recipient_access
hash:/etc/postfix/access-inbound
Then in your /etc/postfix/access-inbound file, simply put,
[EMAIL PROTECTED] OK
example.org REJECT
Thanks,
Jim