[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[linux-team] Sendmail et Relay
Hep ;-)
Dites, comment faire pour interdire le relay "non-local" avec sendmail ?
Sendmail, j'ai déjà chipoté un peu, mais il y a un bail, et notre (boulot)
serveur mail externe (Linux) avec Sendmail 8.8.8 est utilisé involontairement
comme relay, et un des admins m'a demandé comment on fait pour désactiver ça.
J'ai juste trouvé ceci dans /etc/mail/linux.mc:
dnl "use_ip" is a list of IP addresses that are allowed to relay mail.
dnl "use_names" is a list of domain names that are allowed to relay mail.
dnl If your host accepts non-local email as relay for other sites, use
dnl "use_relayto" to specify those sites.
dnl To ban unauthorized relay, you have to use one or more of "use_ip",
dnl "use_names" and "use_relayto". Always add the line with "check_rcpt4".
dnl
dnl HACK(`use_ip',`/etc/mail/LocalIP')dnl
dnl HACK(`use_names', `/etc/mail/LocalNames')dnl
dnl HACK(`use_relayto', `/etc/mail/RelayTo')dnl
dnl HACK(`check_rcpt4')dnl
Je dois décommenter use_ip et mettre l'IP de notre firewall dans /etc/mail/LocalIP ?
...sachant que notre configuration réseau est la suivante:
+---+
|lx |
+---+
|
+---+
*--|fw |--LAN--
+---+
*=internet ;-)
Puis un
m4 /etc/mail/linux.mc > /etc/sendmail.cf
rcsendmail reload
Ca suffit ou bien il y a d'autres astuces ?
merci ;-)
--
-o) / Pascal Bleser ATOS Payment Systems|
/\\ \ C++/UNIX Development Aachen, Germany|
_\_v \<guru@linuxbe.org> <pbleser@atos-group.com>|
---------------------------------------------------|
I gave up Smoking, Drinking and Sex. :
It was the most *horrifying* 20 minutes of my life!:
---------------------------------------------------'
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.