sendmail loop???


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users sendmail loop???
# 1  
Old 10-22-2001
sendmail loop???

Hi all,

i used to have user1 account on my box, then i deleted this account. But i keep on getting emails from sendmail:

From: user1@mydomain.com
To:user1@mydomain.com .... User not found!!!

I'm getting like hundreds of this emails everyday to root. I've checked my mgueue and spool there is no temp messages in there. How can i get rid of this message.

Regards,

Smilie
# 2  
Old 10-22-2001
Computer sendmail still mailing deleted user

I have an idea as to your problem.

Either you have some scripts that have the hardcoded username to mail its output to or your sendmail "aliases" file has that user in it.

For the latter, you need to look for a file called "aliases". It is usually in /etc/mail/aliases. Do a "find / -name aliases -print" to find it.

This is the configuration file for how sendmail handles mailing lists based on mail aliases. You may have an entry in there for this user1.

Go ahead and search for an aliases file on your system. On HPUX it is in /etc/mail/aliases.

Once you remove this line from the aliases file, you will need to execute the "newaliases" or sendmail -bi command to update your sendmail configuration.


What may be happening is sendmail still thinks that the user exists because it is in this file even though you deleted them from the system.

Smilie
# 3  
Old 10-22-2001
..

Hi,

I dont have this user in aliases, i've already cheched this. Any other suggestions?

Thank you,
Smilie
# 4  
Old 10-23-2001
Is it from the same users as it is sending to? If so, you might check to see if they have any cron jobs still scheduled somehow. This shouldn't be the case, but I've seen wierder...
# 5  
Old 10-23-2001
sendmail

1) Here is a crazy idea. Re-create this user, leave them on the box for at least one day. Then remove them from the box again.


2) If that doesn't work then you possibly have a script that runs as this user and emails to themself.

OR

3) This user may be sending email to your box from somewhere else.


Also, is there any info in the body of these emails that you can divulge to us? Maybe the body of the message can give you a clue where it comes from.

Let me know if this helps.

Smilie
# 6  
Old 10-25-2001
I've found out that the message is sent by of the machines in my local network. It's kinda hard to find out what machine, coz i've got around 300 of them. Is there any way i can configure sendmail to drop the messages send FROM of TO user1@mydomain

Thank you all,
Smilie
# 7  
Old 10-25-2001
it shouldnt be hard just look at the sending address. and telnet to that machine. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. UNIX for Dummies Questions & Answers

Write a while loop inside for loop?

I'm taking a unix class and need to countdown to 0 from whatever number the user inputs. I know how to do this with a while or until loop but using the for loop is throwing me off.... I know I can use an if-then statement in my for loop but can I include a while loop in my for loop? (3 Replies)
Discussion started by: xxhieixx
3 Replies

3. Shell Programming and Scripting

awk loop using array:wish to store array values from loop for use outside loop

Here's my code: awk -F '' 'NR==FNR { if (/time/ && $5>10) A=$2" "$3":"$4":"($5-01) else if (/time/ && $5<01) A=$2" "$3":"$4-01":"(59-$5) else if (/time/ && $5<=10) A=$2" "$3":"$4":0"($5-01) else if (/close/) { B=0 n1=n2; ... (2 Replies)
Discussion started by: klane
2 Replies

4. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

5. Shell Programming and Scripting

Reset while loop to loop same file multiple times

Hi, I want to read file multiple times. Right now i am using while loop but that is not working. ex. While read line do while read line2 do echo stmt1 #processing some data based on data., done < file2.txt done < file1.txt # This will have 10... (4 Replies)
Discussion started by: tmalik79
4 Replies

6. Shell Programming and Scripting

Array Variable being Assigned Values in Loop, But Gone when Loop Completes???

Hello All, Maybe I'm Missing something here but I have NOOO idea what the heck is going on with this....? I have a Variable that contains a PATTERN of what I'm considering "Illegal Characters". So what I'm doing is looping through a string containing some of these "Illegal Characters". Now... (5 Replies)
Discussion started by: mrm5102
5 Replies

7. Shell Programming and Scripting

My for loop decides to become an infinite loop?

Hi, I was debating if I should put this in the dummies or scripts section, I apologize in advance if I chose poorly. Fairly new to Unix and BASH scripting but I thought I made it fairly well given my limited understanding. However, the output indicates that it's looping and I'm ending up with a... (5 Replies)
Discussion started by: gotreef
5 Replies

8. Shell Programming and Scripting

BASH loop inside a loop question

Hi all Sorry for the basic question, but i am writing a shell script to get around a slightly flaky binary that ships with one of our servers. This particular utility randomly generates the correct information and could work first time or may work on the 12th or 100th attempt etc !.... (4 Replies)
Discussion started by: rethink
4 Replies

9. Shell Programming and Scripting

Null Handling in Until loop. . .loop won't stop

Hi Im running this script, which is supposed to find the max value build some tables and then stop running once all the tables are built. Thing is , it keeps assigning a null value to $h and then $g is null so it keep building tables i.e. testupdateNUL. How can I stop this? Here is what I have: ... (4 Replies)
Discussion started by: brandono66
4 Replies

10. Shell Programming and Scripting

Using variables created sequentially in a loop while still inside of the loop [bash]

I'm trying to understand if it's possible to create a set of variables that are numbered based on another variable (using eval) in a loop, and then call on it before the loop ends. As an example I've written a script called question (The fist command is to show what is the contents of the... (2 Replies)
Discussion started by: DeCoTwc
2 Replies
Login or Register to Ask a Question