Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

Autoresponding works only for local email addresses (sendmail and vacatoin)

I have sendmail running on Red Hat, and have set up the program vacation to enable autoresponding to users. For some reason, vacation autoresponds only to local users. For instance, when vacation is set up for user1@domain.net, if user2@domain.net sends a message to user1, then user2 does get the configured autoresponse message. If user3@anotherdomain.net sends a message to user1@domain.net, he does not get an autoresponse.

Please note that the mailserver is sitting behind a firewall. The IP of domain.net is obviously that of the firewall which forwards connections to mail ports to the mail server.

Thank you for the help.
0
asa44m
Asked:
asa44m
  • 3
  • 2
  • 2
1 Solution
 
asa44mAuthor Commented:
BTW, my .forward file contains the following:

\user1
|"/usr/bin/vacation -a user1@domain.net user1"
0
 
Alf666Commented:
Is the box you're doing the vacation on your mail server ?

0
 
Karl Heinz KremerCommented:
Check your mail logs to see if the vacation program tries to send an email.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
asa44mAuthor Commented:
- Yes, the vacation program and sendmail are both on the same box.

- This entry from the maillog seems to suggest that a message was sent, but nothing actually arrives:

Apr  4 16:27:20 servername sendmail[5364]: i34FRKYI005363: to=|"/usr/bin/vacation -a user1@domain.net user1", ctladdr=<user1@domain.net> (519/12), delay=00:00:00, xdelay=00:00:00, mailer=prog, pri=61541, dsn=2.0.0, stat=Sent

I am not actually now sure whether autoresponding for local addresses is actually working.

Thanks.
0
 
Karl Heinz KremerCommented:
The log entry only says that the vacation program was called. It does not list an outgoing message. Look at the entries right after the one you quoted.

Why did you think that autoresponding for local addresses was working? What changed your mind?
0
 
Alf666Commented:
Stupid question, but is this server able to send emails outside at all ?

Can you try and send an email from the command line (like : mail user@domain.tld) ?

0
 
asa44mAuthor Commented:
OK, I have found the problem. A very stupid one. It seems that after I set up vacation and tested it successfully I had  somehow messed up my /etc/hosts inadvertently (I do not know why I opened it). The problem was not that vacation worked for local but not external users, as I thought, but that it had stopped working all together because of the typo in /etc/hosts.

I am giving the points to Khkremer because it was his advice to check the maillog that ultimately alerted me to the problem. Thank you to all of you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now