lug-bg: Sendmail & Open Relay
- Subject: lug-bg: Sendmail & Open Relay
- From: Konstantin Angelov <kangelov@xxxxxxxxxxx>
- Date: Wed, 29 Oct 2003 10:36:36 -0500 (EST)
Privet,
Polzvam Sendmail 8.12.10 sus access db.Kogato se zakacha s
telnet na 25 port i opitam da pratq e-mail s falshivi headeri, sendmail
nai-poslushno si izpulnqva komandata bez da vurne relaying
denied.Mashinata ot koqto pravq telnet sesiata ne figurira v access db-to.
Eto i prototipa koito polzvam:
divert(0)dnl
VERSIONID(`@(#)sendmail-8.12.10-mainite 2003/10/29, kangelov')
OSTYPE(linux)dnl
DOMAIN(mainite.com)dnl
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')dnl
define(`confPRIVACY_FLAGS',
`goaway,authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_MECHANISMS', `DIGEST-MD5 LOGIN PLAIN')dnl
define(`confDEF_AUTH_INFO', `/etc/mail/auth/auth-info')dnl
define(`confCACERT_PATH', `/etc/ssl/certs')dnl
define(`confCACERT', `/etc/ssl/demoCA/mainite.com.cacert')dnl
define(`confSERVER_CERT', `/etc/ssl/server/mainite.com.cert')dnl
define(`confSERVER_KEY', `/etc/ssl/server/mainite.com.key')dnl
define(`confCLIENT_CERT', `/etc/ssl/server/mainite.com.cert')dnl
define(`confCLIENT_KEY', `/etc/ssl/server/mainite.com.cert')dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
define(`confSMTP_LOGIN_MSG', `$b')dnl
define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/listar.aliases')dnl
define(`LUSER_RELAY', `cyrusv2:localhost')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 LOGIN PLAIN')dnl
INPUT_MAIL_FILTER(`spamassassin', `S=local:/var/run/sendmail/spamass.sock,
F=, T=C:15m;S:4m;R:4m;E:10m')dnl
FEATURE(`genericstable')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`redirect')dnl
FEATURE(`nouucp', `reject')dnl
FEATURE(`nocanonify')dnl
FEATURE(`always_add_domain')dnl
FEATURE(`virtusertable')dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`relay_entire_domain')dnl
FEATURE(`relay_based_on_MX')dnl
FEATURE(`dnsbl')dnl
FEATURE(`delay_checks')dnl
FEATURE(dnsbl, `dialups.mail-abuse.org', `Dialup - see
http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl, `relays.mail-abuse.org', `Open spam relay - see
http://work-rss.mail-abuse.org/rss/')dnl
FEATURE(dnsbl,`dnsbl.njabl.org',`Message from $&{client_addr} rejected -
see http://njabl.org/')dnl
FEATURE(`enhdnsbl', `bl.spamcop.net', `"Spam blocked see:
http://spamcop.net/bl.shtml?"$&{client_addr}', `t')dnl
MAILER(`smtp')dnl
MAILER(`local')dnl
MAILER(`cyrusv2')dnl
MAILER(`procmail')dnl
LOCAL_CONFIG
FN /etc/mail/sendmail.cN
MAILER_DEFINITIONS
Mcyrusv2, P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromL, R=EnvToL/HdrToL, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/run/cyrus/socket/lmtp
Blagodarq predvaritelno.
--
Konstantin Angelov
kangelov@xxxxxxxxxxx
ICQ# 21034161
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|