[sendmail] One Spam Per Day..


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers [sendmail] One Spam Per Day..
# 1  
Old 03-09-2015
[sendmail] One Spam Per Day..

Hi,
I have sendmail 8.14.4 on a CentOS 6.6-RELEASE virtual machine. This box is primary MX for our domain, and everything is swell.

Every single day, one spam gets through. This spam has the 'From' address '<>', and my google search reveals that blocking the null sender is not a good idea.

In my sendmail.mc, I have:

dnl FEATURE(`enhdnsbl',`sbl-xbl.spamhaus.org',`"Message from "$&{client_addr}" rejected - see: http://www.spamhaus.org/sbl"


But this blocks e-mail from two of our clients.

One spam per day isn't that bad, but it's frustrating that I can't stop it. The IP is different every day. The e-mail always comes from 'david[randomcharacters]@something.com, so I can't block 'david,' because that will stop legitimate e-mails.

I think that this is a job for procmail, but reading the recipes, they look like they were written in postgrad maths.

Can someone help?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Julian day to dates in YEAR-MONTH-DAY

hello, I have many files called day001, day002, day003 and I want to rename them by day20070101, day20070102, etc. I need to do it for several years and leap years as well. What is the best way to do it ? Thank you. (1 Reply)
Discussion started by: Ggg
1 Replies

2. UNIX for Dummies Questions & Answers

Move the files between Current day & a previous day

Hi All, I have a requirement where I need to first capture the current day & move all the files from a particular directory based on a previous day. i.e move all the files from one directory to another based on current day & a previous day. Here is what I am trying, but it gives me errors.... (2 Replies)
Discussion started by: dsfreddie
2 Replies

3. Shell Programming and Scripting

Script to check if last modified day is previous day

Hi, I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it. For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Discussion started by: hegdepras
1 Replies

4. Shell Programming and Scripting

Code creates day 32 instead of 1st day of next month.

I am using the code below modified from a post I saw here regarding having the script write out future dates. The problem is that instead of making 8/1 it makes 7/32! Please help! yy=`date +%Y` mm=`date +%m` dd=`date +%d` echo "Today is : $yy $mm $dd" #!/usr/bin/ksh date '+%m... (5 Replies)
Discussion started by: libertyforall
5 Replies

5. Solaris

May i know the day to day activities of a Solaris system administrator?

Recently i have attended a telephonic interview. As i dont have work experience in solaris i was not able to deliver correct answer for this question. Your answer will help for the people like me who is looking to become Solaris System administrator. (4 Replies)
Discussion started by: Sesha
4 Replies

6. Shell Programming and Scripting

Script to find previous month last day minus one day timestamp

Hi All, I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this. My Requirment is as below: Input for me will be 2000909(YYYYMM) I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
Discussion started by: girish.raos
3 Replies

7. Solaris

/var size is increasing day by day

Hi experts, I am facing a big problem. i use solaris 9. i found size of /var is increasing day by. snapshot of a yester moring- /dev/vx/dsk/var 15G 14G 1.1G 94% /var snapshot of a yesterday everning- /dev/vx/dsk/var 15G 14G 824M 95% /var I am... (11 Replies)
Discussion started by: thepurple
11 Replies

8. Solaris

(anti spam )Sendmail v8.11.6 on sun solaris 8

hay i have a problem in sendmail i have many spam and i can't stop it i was read some ruls and i add it in sendmail config file but nothing happend i recived about 300 spam mail daily in users mail .... can any one help me .... (4 Replies)
Discussion started by: monn99
4 Replies

9. Shell Programming and Scripting

Write a shell script to find whether the first day of the month is a working day

Hi , I am relatively new to unix... Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell.. This is very urgent. Thanks for ur help... (7 Replies)
Discussion started by: phani
7 Replies
Login or Register to Ask a Question
SPAMASS_MILTER(8)					    BSD System Manager's Manual 					 SPAMASS_MILTER(8)

NAME
spamass-milter -- sendmail milter for passing emails through SpamAssassin SYNOPSIS
spamass-milter -p socket [-b|-B spamaddress] [-d debugflags] [-D host] [-e defaultdomain] [-f] [-i networks] [-I] [-m] [-M] [-P pidfile] [-r nn] [-u defaultuser] [-x] [-- spamc flags ...] DESCRIPTION
The spamass-milter utility is a sendmail milter that checks and modifies incoming email messages with SpamAssassin. The following options are available: -p socket Specifies the pathname of a socket to create for communication with sendmail. If it is removed, sendmail will not be able to access the milter. This may cause messages to bounce, queue, or be passed through unmiltered, depending on the parameters in sendmail's .cf file. -b spamaddress Redirects tagged spam to the specified email address. All envelope recipients are removed, and inserted into the message as 'X-Spam-Orig-To:' headers. -B spamaddress Same as -b, except the original recipients are retained. Only one of -b and -B may be used. -d debugflags Enables logging. debugflags is a comma-separated list of tokens: func Entry and exit of internal functions. misc Other non-verbose logging. net Lookups of the ignored netblocks list. poll Low-level I/O to the child spamc process. rcpt Recipient processing. spamc High-level I/O to the child spamc process. str Calls to field lookup and string comparison functions. uori Calls to the update_or_insert function. 1 (historical) Same as func,misc. 2 (historical) Same as func,misc,poll. 3 (historical) Same as func,misc,poll,str,uori. -D host Connects to a remote spamd server on host, instead of using one on localhost. This option is deprecated; use -- -d host instead. -e defaultdomain Pass the full user@domain address to spamc. The default is to pass only the username part on the assumption that all users are local. This flag is useful if you are using an SQL (or other username) backend with spamassassin and have listed the full address there. If the recipient name has no domain part (if the recipient is on the local machine for example), defaultdomain is added. Requires the -u flag. -f Causes spamass-milter to fork into the background. -i networks Ignores messages if the originating IP is in the network(s) listed. The message will be passed through without calling SpamAssassin at all. networks is a comma-separated list, where each element can be either an IP address (nnn.nnn.nnn.nnn), a CIDR network (nnn.nnn.nnn.nnn/nn), or a network/netmask pair (nnn.nnn.nnn.nnn/nnn.nnn.nnn.nnn). Multiple -i flags will append to the list. For example, if you list all your internal networks, no outgoing emails will be filtered. -I Ignores messages if the sender has authenticated via SMTP AUTH. -m Disables modification of the 'Subject:' and 'Content-Type:' headers and message body. This is useful when SpamAssassin is configured with 'defang_mime 0' and 'report_header 1', or when SA is simply used to add headers for postprocessing later. Updating the body through the milter interface can be slow for large messages. -M Like -m, but also disables creation of any SpamAssassin 'X-Spam-*' headers as well. Both tagged and untagged mail gets passed through unchanged. To be useful, this option should be used with the -r, -b, or -B flags. If -b is used, the 'X-Spam-Orig-To:' headers will still be added. -P pidfile Create the file pidfile, containing the processid of the milter. -r nn Reject scanned email if it greater than or equal to nn. If -1, reject scanned email if SpamAssassin tags it as spam (useful if you are also using the -u flag, and users have changed their required_hits value). For example, if you usually use procmail to redirect tagged email into a separate folder just in case of false positives, you can use -r 15 and reject flagrant spam outright while still receiving low-scoring messages. -u defaultuser Pass the username part of the first recipient to spamc with the -u flag. This allows user preferences files to be used. If the mes- sage is addressed to multiple recipients, the username defaultuser is passed instead. Note that spamass-milter does not know whether an email is incoming or outgoing, so a message from <user1@localdomain.com> to <user2@yahoo.com> will make spamass-milter pass -u user2 to spamc. -x Pass the recipient address through sendmail -bv, which will perform virtusertable and alias expansion. The resulting username is then passed to spamc. Requires the -u flag. -- spamc flags ... Pass all remaining options to spamc. This allows you to connect to a remote spamd with -d or -p. FILES
/usr/bin/spamc client interface to SpamAssassin SEE ALSO
spamassassin(1), spamd(1) AUTHORS
Georg C. F. Greve <greve@gnu.org> Dan Nelson <dnelson@allantgroup.com> BSD
July 25, 2001 BSD