Dec 072009

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 😉 discard:silently 

Log shows:

Dec  7 17:23:05 smtp postfix/smtpd[1178]: AFDB72503B:[], sasl_method=PLAIN,
Dec  7 17:23:05 smtp postfix/cleanup[1188]: AFDB72503B: message-id=<>
Dec  7 17:23:05 smtp postfix/qmgr[1167]: AFDB72503B: from=<>, size=838, nrcpt=7 (queue active)
Dec  7 17:23:05 smtp postfix/discard[1192]: AFDB72503B: to=<>, 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: []
Dec  7 17:23:05 smtp postfix/smtp[1190]: AFDB72503B: to=<>,[]: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)


Dec 072009

I don’t know what is the right subject for this topic, the idea is, i just want my outgoing smtp for sending email only, authenticated user not supposed send(or accidentally) to his/her smtp authentication account.which are in my configuration stored in virtual mailbox maps table. In normal case can delivering email to maildir.

I’m using postfixadmin to generate username/password, saslauthd with pam_mysql for querying username/password to mysql virtual mailbox table.Everything is okay with authentication things, except i don’t want username receiving email

In postfix access 5 manual there is actions called DISCARD

       DISCARD optional text...
              Claim successful delivery and silently discard  the
              message.   Log the optional text if specified, oth-
              erwise log a generic message.

              Note: this action currently affects all  recipients
              of  the  message.   To  discard  only one recipient
              without discarding  the  entire  message,  use  the
              transport(5) table to direct mail to the discard(8)

              This feature is available in Postfix 2.0 and later.

Continue reading »