LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2003, 08:29 PM   #1
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Rep: Reputation: 15
how to refuse to send email to some domain with sendmail?


My sendmail server recently gets the maillog like this:

Sep 16 08:36:36 linux sendmail[1961]: h8EIKbmM026822:

to=<l48yg.cuygm@softhome.net>, delay=16:42:14, xdelay=00:00:00,

mailer=esmtp, pri=1385829, relay=mx0a.softhome.net., dsn=4.0.0,

stat=Sent
-----------------------------
and the load average of the mail server always is about 24 , and CPU used by system or user is at 80%, so I think that is because the user of my company is sending virus email to some domain like @softhome.net , is that right? (there are plenty of this kind of record in maillog file)

If this is right ,can I do something to refuse people of my company to send the virus email to that domain with my sendmail server?

please help me!
 
Old 09-16-2003, 12:40 AM   #2
michelvd
LQ Newbie
 
Registered: Feb 2003
Location: Bilthoven
Distribution: RedHat / Debian
Posts: 2

Rep: Reputation: 0
Hi,

you can add a line 'to:softhome.net REJECT' to your /etc/mail/access file. Rebuild the file with 'makemap hash /etc/mail/access < /etc/mail/access' and reload sendmail, that should do the trick.
 
Old 09-16-2003, 07:12 AM   #3
lzyking
Member
 
Registered: Dec 2002
Posts: 74

Original Poster
Rep: Reputation: 15
thanks michelvd, but I found that there are a lot of address I will add to the file access , I mean perhaps I have 200 addresses that I must to reject , is this the right way I fix the problem?

By the way ,I found the mail server always sent mail after come off work , and there is no pc working at that time ,dose it mean the mail my email server sent is not virus email? what can I do for this?

When I check my maillog ,I can't find record such as "from" , I just got the record such as a lot of "to " , does it mean the email is sent by my company's user?

please help me ! thanks
 
Old 09-16-2003, 08:21 AM   #4
michelvd
LQ Newbie
 
Registered: Feb 2003
Location: Bilthoven
Distribution: RedHat / Debian
Posts: 2

Rep: Reputation: 0
[QUOTE]Originally posted by lzyking
[B]thanks michelvd, but I found that there are a lot of address I will add to the file access , I mean perhaps I have 200 addresses that I must to reject , is this the right way I fix the problem?

It is _a_ way, we use it for the same purpose, although its the other way round, to block mail from certain domains. If you think the mails are virusses, have a look at amavis or another viruskiller.

By the way ,I found the mail server always sent mail after come off work , and there is no pc working at that time ,dose it mean the mail my email server sent is not virus email? what can I do for this?

That is possible, maybe some mail couldn't get deliverd right away and the mailserver is retrying. Do you send mail to a smarthost or not (sendmail.cf -> DS)

When I check my maillog ,I can't find record such as "from" , I just got the record such as a lot of "to " , does it mean the email is sent by my company's user?

There are always from: lines, but it could be your users are sending mail to many addresses and they get lost in the to: lines can you do a grep on the maillog ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
slackware 8.1 and sendmail 8.12, changes? can't send email. RazorH Slackware 5 01-29-2010 05:56 AM
ppl can't send email to me... sendmail ultrax Linux - Networking 3 07-15-2005 03:37 PM
qmail wont send email to addresses not in my domain robmainella Linux - Software 2 02-02-2004 05:37 PM
cant send email (using sendmail) to newly added domain user sirjosi Linux - Newbie 0 10-22-2003 01:12 AM
sendmail won't send email robmainella Linux - Software 0 09-10-2003 04:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration