Re: sendmail logs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





this is my sendmail.mc

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`linux setup for numb.darktech.org')dnl
OSTYPE(`linux')dnl
DOMAIN(`generic')dnl
define(`confLOG_LEVEL', `10')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
dnl define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,goaway,novrfy,noexpn,restrictqrun')dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
dnl define(`confAUTH_OPTIONS', `A')dnl
dnl define(`confTO_IDENT', `0')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(`redirect')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`relay_hosts_only')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`local_procmail')dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
dnl MASQUERADE_AS(`numb.darktech.org')dnl
dnl FEATURE(`no_default_msa')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`procmail')dnl


thats it

in access i dont have any other relay entry.

localhost.localdomain   RELAY
localhost               RELAY
127.0.0.1               RELAY
cyberspammer.com       550 We don't allow spam
mindspring.com         550 We don't accept mail from you
esqueeky.com           550 We don't accept mail from you
big@xxxxxxxxxxxxxxxxx  REJECT
big@                   550 Mailbox disabled
hushmail.com           550 We don't accept mail from you
superonline.com        550 We don't accept mail from you
teamblur.org           550 We don't accept mail from you
pacbell.net            550 We don't accept mail from you
newtel.com             REJECT
rocketmail.com         REJECT
smtpserver.com         REJECT
visp.tiscali.fr        REJECT
corporatekiller.com    REJECT
pressroom.com          REJECT
flevonet.nl            REJECT
chartertn.net          REJECT
pskov.su               REJECT
att.net                REJECT
bluecom.no             REJECT

just this.


On Fri, 24 Sep 2004, Paul Howarth wrote:

Hi Carlo,

Carlo Orecchia wrote:
I am using the server as an smtp server. It means all clients (let's say 192.168.1.20/25) in my lan send mails throughout my server (let's say 192.168.1.1) which is obviously directly connetted to internet.
(when i say clients i mean for instance outlook express, not other standalone servers).
To let these clients relay I have for any IP an entrance in the access like this:


localhost.localdomain RELAY
192.168.1.20 RELAY

This all looks good so far. Do you have any other entries in the file with a RELAY tag, particularly any with a name instead of an IP address?


Now, what i wonder is why sendmail allows relay even if I remove these entries. and only does not allow relay if i remove from hosts the hostname i gave to the machine (e.g. 192.168.1.20 lan01)

It may be relaying because of another feature other than the IP address being specified in the access.db.


About this i guess is because if I remove the hostname the ip does not resolve so the server does not accept it. So the fact i does not relay has nothing to do with the access database or access rules in general.

That looks likely.

Anyway why if I remove the 192.168.1.20 RELAY line that machine is still able to relay?
I obviously run makemap and restart sendmail after having modified access file and i don't have relay-domains entries (only localhost)

There's no need to restart sendmail after doing the makemap

What's your sendmail.mc look like? Please post all of it.

Paul.




-- Dott. Carlo Orecchia E-Mail: carlo@xxxxxxxxxxxxxxxxx Web: http://numb.darktech.org/carlo/



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux