(原創)某domain(域名) 只收來自某IP的email
- 詳細內容
- 分類: Mail
- 發佈: 2008-12-30, 週二 09:32
- 作者 Super User
- 點擊數: 17598
freebsd+postfix+postfixadmin:
vi /usr/local/etc/postfix/main.cf
mynetworks = 10.2.91.88/32
smtpd_restriction_classes = your-domain.com
your-domain.com = permit_mynetworks,reject
smtpd_sender_restrictions = check_recipient_access mysql:/usr/local/etc/postfix/mysql_virtual_alias_recipient_maps.cf
vi /usr/local/etc/postfix/mysql_virtual_alias_recipient_maps.cf
user = postfix
password = postfix
hosts = localhost
dbname = postfix
table = alias
select_field = domain
where_field = address
additional_conditions = and domain = 'your-domain.com'
/usr/local/etc/rc.d/postfix reload
linux+qmail+vpopmail:
vi rcpthosts
delete your-domain.com
vi /etc/tcp.smtp
10.2.91.88:allow,RELAYCLIENT=""
qmailctl cdb