Martín Marqués wrote:
> I'm looking to put a smtp server to deliver mails from a non-smtp
> server (database, web server, etc.). I started looking at ssmtp and
> masqmail, but neither convinced me.
>
> So, as I'm using postfix in my mail servers, and I really like it, and
> know how to use it, I thought I would give it a try.
>
> The thing is, which would be the the smallest possible configuration
> to get postfix, with aliases enabled, just to output mail that comes
> from cron, execution of sendmail from command line and the use of the
> mail command (my thoughts start with which lines to comment out of
> master.cf)?
>
>   
You can comment out the smtp (using the smtpd daemon) line in master.cf
to have it not listen on port 25, but still allow outward sending.

Doing so limits you to use the submission port (587 for those that
support TCP submissions) or to use the pickup daemon to get all email
submitted via the sendmail command (mailx also sends via sendmail command).

Brian

Reply via email to