OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Postfix bug, limitation or i'm stupid ???

davijvsinfo.com.br
Date: Thu Sep 02 2004 - 13:47:15 CDT


Hello,

I'm talk from Brazil.

Under 2 months, i'm trying to configure the postfix to send and recieve external e-mail for some users and others not, but i find some
examples to send or recieve under this condiction.

This is my last chance in main.cf to make this, but dosen't work fine, i
just block recieve e-mail, and send pass thur restriciton.

Please, give-me some light about this, i canot find exit !!!

Sorry for my english !!!!

Also, i send my all postfix conf, it's content my perl script to query
windows 2003 AD and find user to create mailbox and work like this:
        - find e-mails in mail attribute in schema and create account and
mail box;
        - find how people are member of the Internal Mail User group and
make restriction for local domains;
        - find how people are member of any group to have mail in mail
atrribute and create alias for grupo to users;
        - create a virtual passwd file to use with nss_db and complement
system acounts with this users;
        - provide LDAP authentication for user in 2003 AD.

I want to share this code and help others users to use postfix to.

Please, help-me !!!!!!

Best Regards !

Davi Baldin
davijvsinfo.com.br

main.cf file

smtpd_restriction_classes =
        full_senders,
        local_senders

local_senders =
        #check_recipient_access hash:/etc/postfix/local_domains,
        check_sender_access hash:/etc/postfix/local_domains,
        reject

full_senders =
        permit

smtpd_recipient_restrictions =
        check_recipient_access hash:/etc/postfix/senders,
        check_sender_access hash:/etc/postfix/senders,
        reject_sender_login_mismatch,
        permit_sasl_authenticated,
        reject_unauth_destination,
        reject_unknown_recipient_domain,
        reject

smtpd_sender_restrictions =
        reject_unknown_sender_domain,
        reject_non_fqdn_sender,
        reject_unauth_pipelining,

senders file

asdasarcel.com.br full_senders
alessandroarcel-sa.com.br local_senders
msuzukiarcel-sa.com.br full_senders
renatojvsinfo.com.br local_senders
testearcel-sa.com.br local_senders
cpdarcel-sa.com.br full_senders

local_domains file

arcel-sa.com.br OK