MountainX wrote:
> I only want my local machine to be able to send email out. I won't want to
> receive email.
>
> Today, I saw this info in my log. The "connect from" surprised me. How can I
> prevent anyone outside my local machine from connecting to postfix?
>
> Jan 26 09:26:48 ubuntu postfix/smtpd[20920]: connect from
> 124-11-132-104.static.tfn.net.tw[124.11.132.104]
> Jan 26 09:26:49 ubuntu postfix/smtpd[20920]: NOQUEUE: reject: RCPT from
> 124-11-132-104.static.tfn.net.tw[124.11.132.104]: 554 5.7.1
> <bibi...@gmail.com>: Relay access denied; from=<logen6...@gmail.com>
> to=<bibi...@gmail.com> proto=SMTP helo=<64.22.71.195>
> Jan 26 09:26:49 ubuntu postfix/smtpd[20920]: lost connection after RCPT from
> 124-11-132-104.static.tfn.net.tw[124.11.132.104]
> Jan 26 09:26:49 ubuntu postfix/smtpd[20920]: disconnect from
> 124-11-132-104.static.tfn.net.tw[124.11.132.104]
>
> The relay access was rejected, but I don't want anyone to get even this far.
> Newbie-oriented advice appreciated.
>   
Postfix listens for all connections on inet_interfaces.

The easiest, and best, way is to block these in your Linux firewall

Alternatively, you can comment out the smtpd line in master.cf and use
the submission (port 587) or pickup service (if using the sendmail
command) in your MUA.

Brian

Reply via email to