検証環境を構築中なのですが、実際の宛先に送信しては困るので、偽装してtestメールアカウント宛てに送信したいです。
現在件名の現象が発生しており、偽装はできているのですが、test1に2通、test2にも2通届くといった状況になっています。
1通ずつ届けたいです。
設定に問題があれば、可能であれば分かりやすく教えていただけないでしょうか?
設定した内容について、以下のように認識しています。
1. Aさん、Bさん、Cさん宛てにメールを送信する
2. transport_mapsの設定で、宛先がtest1、test2さん以外のため、ワイルドカードでローカル配送される
3. aliases_mapにて、ワイルドカードで宛先がtest1とtest2に設定される
4. 再度transport_mapsの設定で、test1、test2とマッチするため、smtp配送される
設定内容は以下のようになっています。
main.cf(一部抜粋) : alias_maps = hash:/etc/aliases, pcre:/etc/postfix/aliases_maps transport_maps = pcre:/etc/postfix/transport_maps :
[root@centos7 postfix]# cat /etc/postfix/transport_maps /test1@example.com/ smtp: /test2@example.com/ smtp: /.*/ local:
[root@centos7 postfix]# cat /etc/postfix/aliases_maps /.*/ test1@example.com, test2@example.com
local:user宛てに配送し、.forwardで転送すると言うやり方も、sendmailではできましたが
postfixではうまくいっていない状況です。
すみませんがよろしくお願い致します。
●追記 メールログを追記します。
Feb 7 18:30:01 web-server-test postfix/pickup[6192]: 8B60946E481: uid=1001 from=<master>
Feb 7 18:30:01 web-server-test postfix/cleanup[6298]: 8B60946E481: message-id=20200207093001.8B60946E481@mail.XXXXXX.info
Feb 7 18:30:01 web-server-test postfix/qmgr[4517]: 8B60946E481: from=<>, size=540, nrcpt=3 (queue active)
Feb 7 18:30:01 web-server-test postfix/smtp[6301]: 8B60946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587,
delay=0.1, delays=0.03/0.01/0.06/0.01, dsn=2.0.0, status=sent (250 Ok: queued as RT4muJFIQ3W8ih21IJKHFQ)
Feb 7 18:30:01 web-server-test postfix/smtp[6301]: 8B60946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, d
87, delay=0.04, delays=0/0/0.03/0.01, dsn=2.0.0, status=sent (250 Ok: queued as M6SFWpJXSKC7lrUL-DZRjA)
Feb 7 18:20:07 web-server-test postfix/smtp[6185]: 225A746E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=
0.04, delays=0/0/0.03/0.01, dsn=2.0.0, status=sent (250 Ok: queued as M6SFWpJXSKC7lrUL-DZRjA)
Feb 7 18:20:07 web-server-test postfix/qmgr[4517]: 225A746E482: removed
Feb 7 18:25:01 web-server-test postfix/pickup[6192]: 50DD946E481: uid=1001 from=<master>
Feb 7 18:25:01 web-server-test postfix/cleanup[6225]: 50DD946E481: message-id=20200207092501.50DD946E481@mail.XXXXXX.info
Feb 7 18:25:01 web-server-test postfix/qmgr[4517]: 50DD946E481: from=<>, size=540, nrcpt=3 (queue active)
Feb 7 18:25:02 web-server-test postfix/smtp[6228]: 50DD946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, d
elay=1.1, delays=0.02/0.01/0.84/0.21, dsn=2.0.0, status=sent (250 Ok: queued as pTdI8359QVeepmAjARL17Q)
Feb 7 18:25:02 web-server-test postfix/smtp[6228]: 50DD946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, del
ay=1.1, delays=0.02/0.01/0.84/0.21, dsn=2.0.0, status=sent (250 Ok: queued as pTdI8359QVeepmAjARL17Q)
Feb 7 18:25:02 web-server-test postfix/smtp[6228]: 50DD946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1.
1, delays=0.02/0.01/0.84/0.21, dsn=2.0.0, status=sent (250 Ok: queued as pTdI8359QVeepmAjARL17Q)
Feb 7 18:25:02 web-server-test postfix/qmgr[4517]: 50DD946E481: removed
Feb 7 18:30:01 web-server-test postfix/pickup[6192]: 8B60946E481: uid=1001 from=<master>
Feb 7 18:30:01 web-server-test postfix/cleanup[6298]: 8B60946E481: message-id=20200207093001.8B60946E481@mail.XXXXXX.info
Feb 7 18:30:01 web-server-test postfix/qmgr[4517]: 8B60946E481: from=<>, size=540, nrcpt=3 (queue active)
Feb 7 18:30:01 web-server-test postfix/smtp[6301]: 8B60946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587,
delay=0.1, delays=0.03/0.01/0.06/0.01, dsn=2.0.0, status=sent (250 Ok: queued as RT4muJFIQ3W8ih21IJKHFQ)
Feb 7 18:30:01 web-server-test postfix/smtp[6301]: 8B60946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, d
elay=0.1, delays=0.03/0.01/0.06/0.01, dsn=2.0.0, status=sent (250 Ok: queued as RT4muJFIQ3W8ih21IJKHFQ)
Feb 7 18:30:01 web-server-test postfix/smtp[6301]: 8B60946E481: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=
0.1, delays=0.03/0.01/0.06/0.01, dsn=2.0.0, status=sent (250 Ok: queued as RT4muJFIQ3W8ih21IJKHFQ)
Feb 7 18:30:01 web-server-test postfix/qmgr[4517]: 8B60946E481: removed
Feb 7 18:30:04 web-server-test postfix/pickup[6192]: 8CEDB46E481: uid=1001 from=<master>
Feb 7 18:30:04 web-server-test postfix/cleanup[6298]: 8CEDB46E481: message-id=20200207093004.8CEDB46E481@mail.XXXXXX.info
Feb 7 18:30:04 web-server-test postfix/qmgr[4517]: 8CEDB46E481: from=<>, size=625, nrcpt=1 (queue active)
Feb 7 18:30:04 web-server-test postfix/cleanup[6298]: 9001F46E482: message-id=20200207093004.8CEDB46E481@mail.XXXXXX.info
Feb 7 18:30:04 web-server-test postfix/qmgr[4517]: 9001F46E482: from=<>, size=775, nrcpt=6 (queue active)
Feb 7 18:30:04 web-server-test postfix/local[6309]: 8CEDB46E481: to=<>, relay=local, delay=0.02, delays=0.01/0.01/0/0, dsn=2.0.0, status=sent (forwarded as 9001F46E482)
Feb 7 18:30:04 web-server-test postfix/qmgr[4517]: 8CEDB46E481: removed
Feb 7 18:30:04 web-server-test postfix/smtp[6301]: 9001F46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=0.05, delays=0/0/0.04/0.01, dsn=2.0.0, status=sent (250 Ok: queued as IIHN-JF9SsmWxXSkMCm4fw)
Feb 7 18:30:04 web-server-test postfix/smtp[6301]: 9001F46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=0.05, delays=0/0/0.04/0.01, dsn=2.0.0, status=sent (250 Ok: queued as IIHN-JF9SsmWxXSkMCm4fw)
Feb 7 18:30:04 web-server-test postfix/smtp[6301]: 9001F46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=0.05, delays=0/0/0.04/0.01, dsn=2.0.0, status=sent (250 Ok: queued as IIHN-JF9SsmWxXSkMCm4fw)
Feb 7 18:30:04 web-server-test postfix/smtp[6301]: 9001F46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=0.05, delays=0/0/0.04/0.01, dsn=2.0.0, status=sent (250 Ok: queued as IIHN-JF9SsmWxXSkMCm4fw)
Feb 7 18:30:04 web-server-test postfix/smtp[6301]: 9001F46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=0.05, delays=0/0/0.04/0.01, dsn=2.0.0, status=sent (250 Ok: queued as IIHN-JF9SsmWxXSkMCm4fw)
Feb 7 18:30:04 web-server-test postfix/smtp[6301]: 9001F46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=0.05, delays=0/0/0.04/0.01, dsn=2.0.0, status=sent (250 Ok: queued as IIHN-JF9SsmWxXSkMCm4fw)
Feb 7 18:30:04 web-server-test postfix/qmgr[4517]: 9001F46E482: removed
Feb 7 18:30:07 web-server-test postfix/pickup[6192]: 8ABAA46E481: uid=1001 from=<master>
Feb 7 18:30:07 web-server-test postfix/cleanup[6298]: 8ABAA46E481: message-id=20200207093007.8ABAA46E481@mail.XXXXXX.info
Feb 7 18:30:07 web-server-test postfix/qmgr[4517]: 8ABAA46E481: from=<>, size=830, nrcpt=1 (queue active)
Feb 7 18:30:07 web-server-test postfix/cleanup[6298]: 8BAFA46E482: message-id=20200207093007.8ABAA46E481@mail.XXXXXX.info
Feb 7 18:30:07 web-server-test postfix/qmgr[4517]: 8BAFA46E482: from=<>, size=980, nrcpt=6 (queue active)
Feb 7 18:30:07 web-server-test postfix/local[6309]: 8ABAA46E481: to=<>, relay=local, delay=0.01, delays=0.01/0/0/0, dsn=2.0.0, status=sent (forwarded as 8BAFA46E482)
Feb 7 18:30:07 web-server-test postfix/qmgr[4517]: 8ABAA46E481: removed
Feb 7 18:30:08 web-server-test postfix/smtp[6301]: 8BAFA46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1, delays=0/0/0.83/0.21, dsn=2.0.0, status=sent (250 Ok: queued as 7mpKVrWqRaWN3ih_c1cH9w)
Feb 7 18:30:08 web-server-test postfix/smtp[6301]: 8BAFA46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1, delays=0/0/0.83/0.21, dsn=2.0.0, status=sent (250 Ok: queued as 7mpKVrWqRaWN3ih_c1cH9w)
Feb 7 18:30:08 web-server-test postfix/smtp[6301]: 8BAFA46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1, delays=0/0/0.83/0.21, dsn=2.0.0, status=sent (250 Ok: queued as 7mpKVrWqRaWN3ih_c1cH9w)
Feb 7 18:30:08 web-server-test postfix/smtp[6301]: 8BAFA46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1, delays=0/0/0.83/0.21, dsn=2.0.0, status=sent (250 Ok: queued as 7mpKVrWqRaWN3ih_c1cH9w)
Feb 7 18:30:08 web-server-test postfix/smtp[6301]: 8BAFA46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1, delays=0/0/0.83/0.21, dsn=2.0.0, status=sent (250 Ok: queued as 7mpKVrWqRaWN3ih_c1cH9w)
Feb 7 18:30:08 web-server-test postfix/smtp[6301]: 8BAFA46E482: to=<>, relay=smtp.xxx.xxx[xxx.xxx.xxx.xxx]:587, delay=1, delays=0/0/0.83/0.21, dsn=2.0.0, status=sent (250 Ok: queued as 7mpKVrWqRaWN3ih_c1cH9w)
Feb 7 18:30:08 web-server-test postfix/qmgr[4517]: 8BAFA46E482: removed
回答2件
あなたの回答
tips
プレビュー