Daniel L. Miller a écrit :
> Ok - now that I've fixed my idiotic routing errors (don't have two NIC's
> on the same network unless you know what you're doing - which I clearly
> don't!), I can get back to Postfix.
> 
> From my prior configuration questions in ages past, I have been trying
> to make most of my changes in master.cf, so each listener will do
> exactly what I want (or to be more correct - exactly what it's TOLD,
> which is not necessarily what I wanted...)
> 
> There are two processes I would like to configure, but I'm not sure
> which lines would be applicable.  Which line in the default master.cf
> would apply to the BSD mail command on the local server?  So when I'm
> configuring my Postfix server, and from the command line I type "mail
> someb...@hotmail.com", which listener(s) process this?
> 

the mail command calls the sendmail command. if the sendmail command is
the one supplied with postfix, the service to configure is pickup.

I personally never use the "mail" command. I prefer using the sendmail
command directly.

> The other process would be whatever performs the send operation.  If I
> understand it right, whether I use the command line "mail" command or an
> SMTP client, it will connect to an smtpd listener.

No.

>  Various Postfix
> internals will munch on the information, and assuming it processed
> correctly a Postfix process will then attempt to send it on the remote
> destination (assuming I'm sending a mail intended for a remote
> destination).  Is that step perform by either the "smtp" or "relay" lines?
> 

By default "relay" is an "smtp". if you check master.cf, you'll find:

relay     unix  -       -       n       -       -       smtp
  ...


> What I'm actually trying to do is configure a relayhost.  What I want is
> to setup a Postfix listener for local SMTP connections, which will then
> forward to a relayhost for spam processing (in this case, primarily
> auto-whitelisting).  That relayhost will then send the message back to
> Postfix on another connection, and THAT listener will not have a
> relayhost defined so it should attempt direct delivery to the remote
> host.  I know this is something relatively simple - I just seem to be
> more obtuse than usual.
> -- 


transports are global inside a postfix instance. so you can't have
context dependent routing rules.

you can however use content_filter in an smtpd or in pickup. but make
sure you don't create a loop.

Reply via email to