Daniel L. Miller wrote:
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?

Local "mail" submission is usually done via the sendmail(1) command. This corresponds to the "pickup" service in master.cf.


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. 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).

Postfix accepts mail via SMTP or sendmail(1)/pickup and puts it in the queue. The queue manager then examines the mail to see where it goes.
http://www.postfix.org/OVERVIEW.html

Is that step perform by either the "smtp" or "relay" lines?

Yes. Postfix decides which to use based on the address class of the destination, can be changed by transport_maps entries.
http://www.postfix.org/ADDRESS_CLASS_README.html


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.
--
Daniel

Define content_filter in main.cf pointing to the spam processing machine, define a new smtpd listener in master.cf listening on a different port.
http://www.postfix.org/FILTER_README.html

Amavisd-new is software often used as a postfix content_filter. Even if you're using something different, the postfix setup is pretty much the same.
http://www.ijs.si/software/amavisd/README.postfix.html


There's a wealth of information to be found at
http://www.postfix.org/documentation.html

  -- Noel Jones

Reply via email to