|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
ACL for postfix or sendmail
Hello,
i want to know how to configure a MTA to relay somes domain by IP source, example : toto.com and titi.com can relay with ip sender 10.2.2.0/24 only lulu.com can relay with ip sender 192.168.0.4/32 only all domain can relay with ip sender 172.0.0.5/32 only It's possible with policy server (postfix) but i dont know how to write policy about it ![]() Or if it's possible with sendmail ? i know how to allow relay by IP or by From: with /etc/mail/access but not twice at same time Thanks Safsound Last edited by safsound; 02-14-2013 at 07:13 AM.. |
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Possible in sendmail but if it takes rewrite rules, very demanding. You mean incoming mail will be relayed to one of several hosts by domain? Nothing delivered locally? Or are you talking about outgoing mail? ACL is a file permission thing, usually.
Postfix is pretty standard about this sort of thing: Postfix SMTP relay and access control |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
somes network -------> my MTA -----> outgoing mail (all destination) i want filter somes network/domain from incoming but nothing to outgoing, But i need to match network with his domain. not just allow a domain incoming or network incoming but twice i see access control for postfix but i dont find any configuration example to help me |
|
#4
|
|||
|
|||
|
And you want different sending domains to relay to different mail servers?
|
| Sponsored Links | |
|
|
#5
|
|||
|
|||
|
Quote:
They can use the MTA to relay on all destination (yahoo, google, etc ....) The filter need to be only on incoming MTA with IP/DOMAIN match source Actually my MTA can filter by IP or by source domain but not at same time to have a good secure filter |
| Sponsored Links | |
|
|
#6
|
|||
|
|||
|
So, this is just a common outgoing email server to support clients, which must shun spammers.
Reverse lookup can be set up to say any domain, unless it checks with a forward lookup to match. I guess in postfix you put your IPs in mynetworks and set to restrict: http://www.postfix.org/SMTPD_ACCESS_README.html#lists From the man page referenced there, how to set mynetworks: http://www.postfix.org/postconf.5.html#mynetworks Last edited by DGPickett; 02-20-2013 at 01:49 PM.. |
| Sponsored Links | |
|
|
#7
|
|||
|
|||
|
Quote:
example : 10.5.5.10 can send from toto.com on all domain in outgoing |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Replace sendmail with Postfix | bpsunadm | Solaris | 0 | 07-26-2010 12:24 PM |
|
|