91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

postfix 郵件網關之一

發布時間:2020-03-11 11:34:44 來源:網絡 閱讀:722 作者:v289 欄目:系統運維

1, 58.215.76.168 (內部接受郵件服務器

接受郵局服務器 

[root@mail6 conf]# cat main.cf

alias_database = hash:/usr/prima/postfix/conf/aliases

alias_maps = hash:/usr/prima/postfix/conf/aliases

append_at_myorigin = yes

append_dot_mydomain = no

command_directory = /usr/prima/postfix/sbin

config_directory = /usr/prima/postfix/conf

daemon_directory = /usr/prima/postfix/libexec

debug_peer_level = 2

disable_vrfy_command = yes

inet_interfaces = all

local_recipient_maps = $alias_maps hash:/usr/prima/postfix/conf/virtual

mail_owner = postfix

mailbox_transport = maildrop

maildrop_checkquota = yes

# The maildrop_checkquota_all controls whether reject mail only when all

# receipts are out of quota. This should be turned off.

maildrop_checkquota_all = no

maildrop_destination_recipient_limit = 1

mailq_path = /usr/bin/mailq

manpage_directory = /usr/prima/postfix/man

maximal_backoff_time = 3600s

maximal_queue_lifetime = 5400s

minimal_backoff_time = 1800s

mydestination = $myhostname $transport_maps

myhostname = mail6.edong.com

mynetworks = 127.0.0.0/8

mynetworks_style = subnet

newaliases_path = /usr/bin/newaliases

queue_directory = /var/spool/postfix

queue_run_delay = 60s

readme_directory = /usr/prima/postfix/conf/README_FILES

sample_directory = /usr/prima/postfix/conf/samples

sendmail_path = /usr/sbin/sendmail

setgid_group = postdrop

smtp_skip_4xx_greeting = no

smtpd_etrn_restrictions = reject

smtpd_helo_required = yes

smtpd_recipient_limit = 100

# freemail host checks

smtpd_restriction_classes = from_freemail_host

from_freemail_host = xheader_if_reject check_client_access hash:/usr/prima/postfix/conf/freemail_hosts,

        reject

smtpd_recipient_restrictions = reject_unauth_pipelining,

        permit_mynetworks,

        reject_unknown_recipient_domain,

        permit_sasl_authenticated,

#       xheader_if_reject reject_unknown_client,

#       xheader_if_reject reject_unknown_hostname,

#       xheader_if_reject reject_unknown_sender_domain,

#        xheader_if_reject reject_invalid_hostname,

#        xheader_if_reject reject_non_fqdn_hostname,

#        xheader_if_reject reject_non_fqdn_sender,

#        xheader_if_reject reject_non_fqdn_recipient,

#       check_sender_access hash:/usr/prima/postfix/conf/freemail_access,

        reject_unauth_destination,

        check_client_access hash:/usr/prima/postfix/conf/filter_server,

        check_recipient_access regexp:/usr/prima/postfix/conf/mail_filter,

        check_client_access hash:/usr/prima/postfix/conf/white_list_server,

        reject_rbl_client zen.spamhaus.org

smtpd_sasl_auth_enable = yes

smtpd_sasl_local_domain = $myhostname

soft_bounce = no

strict_rfc821_envelopes = yes

transport_maps = hash:/usr/prima/postfix/conf/transport

virtual_alias_maps = hash:/usr/prima/postfix/conf/virtual

bounce_queue_lifetime = 0

smtpd_timeout = 60s

parent_domain_matches_subdomains = 

relayhost = [gw2.edong.com]

always_bcc = 

message_size_limit = 31457280


2, filter_server主要作用是接受來自如下兩ip的信件。


(注:在76.168接受所有郵件后會通過mail_filter轉向到gw1.edong.com及203.191.144.138上,所以在通過main.cf內check_client_access hash:/usr/prima/postfix/conf/filter_server,

      check_recipient_access regexp:/usr/prima/postfix/conf/mail_filter,


的過濾后來接受來自網關的信件。這樣可以過濾點一大部分垃圾郵件。)


[root@mail6 conf]# cat filter_server

203.191.144.138 OK

203.191.144.137 OK


3, 接受客戶發來的信件

[root@mail6 conf]# cat white_list_server

58.215.76.168 OK


4,  將接受到的郵件發到網關gw1.edong.com進行過濾后再返回正常進入接受隊列。

[root@mail6 conf]# cat mail_filter

/techsun.com.cn/ FILTER spamfilter:[gw1.edong.com]:10025

#/[c-fC-F].*.com.cn/ FILTER spamfilter:[gw1.edong.com]:10025

/thh@cnagg.com/ FILTER spamfilter:[gw1.edong.com]:10025

#/.*/ FILTER spamfilter:[gw1.edong.com]:10025


5,


transport_maps這個參數對應的是所有目標接受方的地址。


[root@mail6 conf]# cat transport

weilesci.com maildrop:

talentbright.com maildrop:

shbizun.com maildrop:

zambon.com.cn smtp:

ags.co.th smtp:

oweb.cn smtp:oweb.cn

decens.cn maildrop:


6,master.conf


spamfilter unix -       -       n       -       -       smtp    -o smtp_send_xforward_command=yes


需要注意的是這條,spamfilter是通過這條來對初次接收到的郵件轉發到網關上去,它主要這個功能。


有些老的postfix不只能spamfilter的功能,需要|grep spamfilter,看是否有相關的rpm,如果有則支持。

# ==========================================================================

# service type private unpriv chroot wakeup maxproc command + args

#               (yes)   (yes)   (yes)   (never) (100)

# ==========================================================================

smtp      inet n       -       n       -       -       smtpd

#628      inet n       -       n       -       -       qmqpd

pickup    fifo n       -       n       60      1       pickup

cleanup   unix n       -       n       -       0       cleanup

#qmgr      fifo n       -       n       300     1       qmgr

qmgr     fifo n       -       n       300     1       nqmgr

rewrite   unix -       -       n       -       -       trivial-rewrite

bounce    unix -       -       n       -       0       bounce

defer     unix -       -       n       -       0       bounce

flush     unix n       -       n       1000?   0       flush

proxymap unix -       -       n       -       -       proxymap

smtp      unix -       -       n       -       -       smtp

relay     unix -       -       n       -       -       smtp

#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5

showq     unix n       -       n       -       -       showq

error     unix -       -       n       -       -       error

local     unix -       n       n       -       -       local

virtual   unix -       n       n       -       -       virtual

lmtp      unix -       -       n       -       -       lmtp

#

# Interfaces to non-Postfix software. Be sure to examine the manual

# pages of the non-Postfix software to find out what options it wants.

#

# maildrop. See the Postfix MAILDROP_README file for details.

#

maildrop unix -       n       n       -       -       pipe

flags=DORhu user=vmail argv=/usr/prima/maildrop/bin/maildrop -d ${recipient} -w 90

#

# The Cyrus deliver program has changed incompatibly, multiple times.

#

old-cyrus unix -       n       n       -       -       pipe

flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}

# Cyrus 2.1.5 (Amos Gouaux)

cyrus     unix -       n       n       -       -       pipe

user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}

uucp      unix -       n       n       -       -       pipe

flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)

ifmail    unix -       n       n       -       -       pipe

flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)

bsmtp     unix -       n       n       -       -       pipe

flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient


spamfilter unix -       -       n       -       -       smtp    -o smtp_send_xforward_command=yes



2009-04-28


向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

和平县| 社旗县| 芦溪县| 应用必备| 漠河县| 富裕县| 垣曲县| 德昌县| 扬中市| 鹤庆县| 正阳县| 黔东| 瓦房店市| 称多县| 东城区| 石景山区| 江山市| 威信县| 永靖县| 富蕴县| 泽州县| 昌黎县| 阿荣旗| 浮梁县| 通化县| 玉门市| 普安县| 宣恩县| 漳浦县| 北川| 礼泉县| 广宁县| 盐边县| 黑河市| 离岛区| 洪江市| 吉林市| 玉溪市| 依安县| 寿光市| 柘荣县|