OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Access.db / Access file from sendmail

From: Carl O (carlobluecoreit.com)
Date: Tue Oct 10 2006 - 14:19:14 CDT


Hello

I have recently moved from sendmail to a postfix configuration. I cannot
however get my old access.db/ access file to be loaded and working. Upon
consulting this thread ( http://news.umailcampaign.com/message/74557.aspx )
I have made the simplest of acccess files to test from:

Code:

1.1.1.1 REJECT YAY

Where 1.1.1.1 is another mailserver i can send mail from. After running
> postmap hash:/etc/postfix/access

And then
> /etc/init.d/postfix restart

The mail is still not rejected. Do I have some formatting wrong? Why are
these mails not being rejected?

In my main.cf I have added :

Code:

smtpd_sender_restrictions = hash:/etc/postfix/access

To the end of the file. Is there some way to check what rules are currently
being applied, or in other words, how do I verify that the access.db file is
being processed by the system? It does not seem to me like it is, and this
config is so simple I cannot imagine what could be wrong.

For bonus points, If anyone could please tell me what is wrong with the
syntax of my old access file.. Is it the quotes? I tried removing them from
a few entries but still no dice. They dont really say in the man pages.

Old sendmail access file snippet:
Code:

to:userdomain REJECT " :die spammer "
213.98.176.46 REJECT " : die spammer "
66.185.52.102 REJECT " : die spammer "

If someone wants to forward some sort of basic access file as a text
attachment, so I can view syntax, that would be great.

thanks
carl