Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail: user and server user "same"

Status
Not open for further replies.

huachano

IS-IT--Management
Jun 26, 2003
3
US
Hi,

I create my self as a user "demo" in my server then I have "demo" for a username for for may mail.
I have the domain name : demo.com. my question is I'm getting too many spams mails to my email account I delete my mx record but since I have demo as a user can I block my email user not to received any mail no more from sendmail conf?.
I do not want to change my user name from my server.
Please help is driving my crazy ...

david
 
subscribe to a real time blackhole list.
Add the following to your sendmail.mc
FEATURE(`dnsbl',`rbl.blackholes.mail-abuse.org')dnl
then recompile your sendmail.mc
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
Restart sendmail
You can also implement the access database in the sendmail.mc by doing this
FEATURE(`access_db')
and then using the following in your access file
xyz.com REJECT
remember to rebuild your access database
makemap hash /etc/mail/access.db < /etc/mail/access
and restart sendmail
This lets you filter on a domain, sub domain or user level.


There is no God, only 10001010
 
Hi After recompiled my sendmail I just got this error:

*** WARNING: missing -T<TMPF> in argument of FEATURE(`ACCESS_DB', HASH -O /etc/m
*** WARNING: FEATURE(`relay_mail_from') may cause your system to act as open realy. Use SMTP AUTH or STARTTLS instead.
WARNING: confAUTO_REBUILD is no longer valid.

There was a potencial for a denial of service attack if tis is set

I'm running RH9,

Please any ideas why is this issue.
what can I do to solve this problem

thanks

thanks.
 
Post your sendmail.mc & your access file

There is no God, only 10001010
 
Hi,

here is my sendmail.mc

divert(-1)
dnl This is the sendmail macro config file. If you make changes to this file,
dnl you need the sendmail-cf rpm installed and then have to generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')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(use_cw_file)dnl
define(`confCW_FILE', `-o /etc/mail/sendmail.cw')dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`relay_mail_from')dnl
FEATURE(`dnsbl',`rbl.blackholes.mail-abuse.org')dnl
EXPOSED_USER(`root')dnl
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
dnl Cwlocalhost.localdomain


I hope this help

thnks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top