There’s weakness in previous article.if i sent message to two or more recipients, it will be also discarded. The solution is just simply route domain to discard service in transport_maps 😉
auth.domain.net discard:silently
Log shows:
Dec 7 17:23:05 smtp postfix/smtpd[1178]: AFDB72503B: client=tebet.domain.net.id[202.xxx.xx.xxx], sasl_method=PLAIN, sasl_username=hari.h@auth.domain.net Dec 7 17:23:05 smtp postfix/cleanup[1188]: AFDB72503B: message-id=<4B1CD786.6020809@domain.com> Dec 7 17:23:05 smtp postfix/qmgr[1167]: AFDB72503B: from=<hari.h@domain.com>, size=838, nrcpt=7 (queue active) Dec 7 17:23:05 smtp postfix/discard[1192]: AFDB72503B: to=<hari.h@auth.domain.net>, relay=none, delay=0.23, delays=0.22/0.01/0/0, dsn=2.0.0, status=sent (silently) Dec 7 17:23:05 smtp postfix/smtp[1190]: Host offered STARTTLS: [202.xxx.xx.xxx] Dec 7 17:23:05 smtp postfix/smtp[1190]: AFDB72503B: to=<hari.h@anotherdomain.co.id>, relay=202.xxx.xx.xxx[202.xxx.xx.xxx]:25], delay=0.29, delays=0.22/0.01/0.01/0.05, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 0A94622036)
done!