:-)

I've had some problems with using unionmaps. Finally it showed that they
were caused by improper configuration of services in the `master.cf'. So
I have decided to improve my knowledge by studying how postfix services
really work and cooperate more thoroughly. I've started with:

http://www.postfix.org/OVERVIEW.html

And there is one thing which is not clear for me:

Let's assume that services defined in `master.cf' are as follows:
-----------------------------------------------------------------------
smtp      inet  n       -       n       -       -       smtpd
  -o content_filter=spamassassin
  -o receive_override_options=no_address_mappings
smtpd     pass  -       -       n       -       -       smtpd
submission inet n       -       n       -       -       smtpd
  -o syslog_name=postfix/submission
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
smtps     inet  n       -       n       -       -       smtpd
  -o syslog_name=postfix/smtps
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_reject_unlisted_recipient=no
  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
  -o milter_macro_daemon_name=ORIGINATING
pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
[...]
spamassassin unix -     n       n       -       -       pipe
  user=nobody argv=/usr/bin/vendor_perl/spamc -f -e /usr/sbin/sendmail
-oi -f ${sender} ${recipient}
------------------------------------------------------------------------

I've checked the log and it seems that mail incoming from remote servers
addressed to local users is processed according to the following chain:

smtpd -> cleanup (with trivial rewrite) -> gmgr -> spamd -> [sendmail]
-> pickup -> cleanup -> qmgr -> local

Generally it is as illustrated on pictures at:

        http://www.postfix.org/OVERVIEW.html

Except one thing. This transition:

        gmgr -> spamd

according to the config must be in fact:

        gmgr -> smtp -> spamd

My question is:

Why does `qmgr' for the first time use `stmp' delivery agent and the
second time `local'. If the recipient is local why does it chooses
`smtp' which (as far as I understand) is designed for remote delivery.
It's fine and it works but why?

Best regards,
Marek

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to