Postfix

提供:FirstWiki
ナビゲーションに移動 検索に移動

postscreen

main.cf

postscreen_access_list = permit_mynetworks, cidr:/etc/postfix/postscreen_access.cidr
postscreen_dnsbl_threshold = 2
postscreen_dnsbl_sites = zen.spamhaus.org*2,
    bl.spamcop.net*1, b.barracudacentral.org*1

送信キューを短縮

main.cf

queue_run_delay = 5m
minimal_backoff_time = 5m
maximal_backoff_time = 15m
maximal_queue_lifetime = 1h
bounce_queue_lifetime = 1h

null client

# postconf -n

compatibility_level = 2
inet_interfaces = loopback-only
mydestination =
relayhost = [<smtp server>]:587
smtp_generic_maps = hash:/etc/postfix/generic
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = plain
smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
smtp_sasl_security_options = noanonymous

/etc/postfix/sasl/passwd

[<smtp server>]:587   <user>:<password>

/etc/postfix/generic

his@localdomain.local      hisaccount@hisisp.example.tld
her@localdomain.local      heraccount@herisp.example.tld
@localdomain.local         hisaccount+local@hisisp.example.tld

コマンドラインからメール送信

# root@vm01:~$ sendmail -t <<EOL
From: vm01
To: root
Subject: test subject
Hello
World
EOL