From: Paweł Janik on 22 Feb 2010 09:45 Hello Default sendmail configuration allow relaying all mail from TCP connect is from local IP addressess. How can I change it ? I do not want to set this in access.db - because i want to have a properly working sending from shell command. Is there a simple method for this (any macro for sendmail.mc) ? Best Regards Pawel Janik
From: Andrzej Adam Filip on 22 Feb 2010 15:18 Paweł Janik <scorpio(a)pogodanet.pl> wrote: > Hello > > Default sendmail configuration allow relaying all mail from TCP > connect is from local IP addressess. How can I change it ? > I do not want to set this in access.db - because i want to have a > properly working sending from shell command. > > Is there a simple method for this (any macro for sendmail.mc) ? By default sendmail allows relaying from $=w addresses/hosts. It is hard coded into m4 files provided by sendmail.org. By default sendmail "auto-fills" $=w. It can be turned off http://www.sendmail.org/m4/tweaking_config.html#confDONT_PROBE_INTERFACES You can accept messages *to* given domain by the following access file entry: to:example.net relay You can deliver locally (to local mailer) message to given non local email domain (not in $=w) using the following mailertable entry: example.net local: -- [pl>en Andrew] Andrzej Adam Filip : anfi(a)onet.eu : Andrzej.Filip(a)gmail.com Open-Sendmail: http://open-sendmail.sourceforge.net/ If any man wishes to be humbled and mortified, let him become president of Harvard. -- Edward Holyoke
From: Paweł Janik on 23 Feb 2010 02:23 W dniu 2010-02-22 21:18, Andrzej Adam Filip pisze: > Paweł Janik<scorpio(a)pogodanet.pl> wrote: >> Hello >> >> Default sendmail configuration allow relaying all mail from TCP >> connect is from local IP addressess. How can I change it ? >> I do not want to set this in access.db - because i want to have a >> properly working sending from shell command. >> >> Is there a simple method for this (any macro for sendmail.mc) ? > > By default sendmail allows relaying from $=w addresses/hosts. > It is hard coded into m4 files provided by sendmail.org. > > By default sendmail "auto-fills" $=w. > It can be turned off > http://www.sendmail.org/m4/tweaking_config.html#confDONT_PROBE_INTERFACES > > You can accept messages *to* given domain by the following access file entry: > to:example.net relay > > You can deliver locally (to local mailer) message to given non local > email domain (not in $=w) using the following mailertable entry: > example.net local: > Hello I set: define(`confDONT_PROBE_INTERFACES',true)dnl and still i have it: # telnet my_local_ip 25 Trying my_local_ip... Connected to my_local_ip. Escape character is '^]'. 220 XXXXXXXXXX ESMTP Sendmail 8.13.6/8.13.6; Tue, 23 Feb 2010 08:10:56 +0100 (CET) helo qweqwe 250 XXXXXXXXX Hello XXXXXXXXXXXXX [my_local_ip], pleased to meet you mail from: someone(a)example.com 250 2.1.0 someone(a)example.com... Sender ok rcpt to: someone(a)example.com 250 2.1.5 someone(a)example.com... Recipient ok I want to turn off the ability to send mail without authorization in connection from the local ip address but DONT_PROBE_INTERFACES dont work (maybe I do something wrong). Any ideas ? Best Regards Pawel Janik
From: ska on 23 Feb 2010 04:08 PaweÅ Janik wrote: what does sendmail -bt $=w print? -ska
From: Paweł Janik on 23 Feb 2010 05:53 W dniu 2010-02-23 10:08, ska pisze: > Paweł Janik wrote: > > what does > > sendmail -bt > $=w > > print? > > -ska Hello I had this problem because this sendmail was on jail (FreeBSD). In jail address 127.0.0.1 is always translated to jail's IP. It was reason why telnet to external IP server (from this server) was treated like 127.0.0.1 ... Pawel
|
Pages: 1 Prev: timeout writing message to a.mx.mail.yahoo.com.: Broken pipe Next: require_rdns |