Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-04-04
7
Medium Priority
?
287 Views
Last Modified: 2010-03-18
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
Comment
Question by:asa44m
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 

Author Comment

by:asa44m
ID: 10751385
BTW, my .forward file contains the following:

\user1
|"/usr/bin/vacation -a user1@domain.net user1"
0
 
LVL 9

Expert Comment

by:Alf666
ID: 10751508
Is the box you're doing the vacation on your mail server ?

0
 
LVL 44

Expert Comment

by:Karl Heinz Kremer
ID: 10751803
Check your mail logs to see if the vacation program tries to send an email.
0
Fill in the form and get your FREE NFR key NOW!

Veeam® is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

Author Comment

by:asa44m
ID: 10752260
- 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
 
LVL 44

Accepted Solution

by:
Karl Heinz Kremer earned 600 total points
ID: 10752278
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
 
LVL 9

Expert Comment

by:Alf666
ID: 10752330
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
 

Author Comment

by:asa44m
ID: 10752747
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question