Results 1 to 1 of 1
Hi After emerging sendmail i first configured it by adding the line Code: DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl to /etc/mail/sendmail.mc, hoping to allow only localhost to send mails. After starting sendmail i couldn't ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 09-12-2007 #1
- Join Date
- Sep 2007
How to configure sendmail, so only localhost can send?
After emerging sendmail i first configured it by adding the line
After starting sendmail i couldn't send any mails :
aim-nano ~ # sendmail firstname.lastname@example.org testing sendmail: Cannot open aim-nano.unizh.ch:25
sendmail: localhost : allow
telnet worked over the smtp port:
aim-nano ~ # telnet localhost smtp Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 aim-nano.unizh.ch ESMTP Sendmail 8.14.0/8.14.0; Wed, 12 Sep 2007 12:02:01 +0200 ehlo aim-nano.unizh.ch 250-aim-nano.unizh.ch Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-EXPN 250-VERB 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-DELIVERBY 250 HELP quit 221 2.0.0 aim-nano.unizh.ch closing connection Connection closed by foreign host.
and reconfigure, and set
sendmail: 220.127.116.11 : allow
open from outside. I can
telnet aim-nano smtp
"550 5.0.0 Access denied")
Question: is this (sendmail: 18.104.22.168 : allow) a secure setup?
If not, how do i have to configure things to have a secure localhost-sendmail