Visit Our UNIX and Linux User Community


Autoreply with sendmail


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Autoreply with sendmail
# 1  
Old 12-07-2001
Question Autoreply with sendmail

Hello,
I need to put autoreply on a lot of mailbox due to adressing change and don't know how to do it ? I'm especially looking for an easy way because I've got up to 500 users to modify.
Thanks for your help.
# 2  
Old 12-07-2001
Try using 'vacation'

We use it in work for auto responding to mail sent to an address.

Presumably, you just need to write a script to set up the .forward and .vacation files in each users home directory.

for more information, try 'man vacation'

hope this helps,
-gHotI
# 3  
Old 12-07-2001
Thanks for your help. I'll try.
# 4  
Old 12-12-2001
Sorry, after many test it is not working with vacation. I'll try adding this to my aliases file:
userid:userid@x.x.com, "|/usr/ucb/vacation brunean -m /etc/test"
Is this correct ?
The redirection is to an Exchange Server, could this be the problem ?
Thanks for help
# 5  
Old 12-12-2001
The exact usage that I am using in our system, is as follows.

The file ".forward" must be present in the home directory, and set up as follows:
Code:
\username, "|vacation -j username"

and the file ".vacation.msg" must also be present, and containing a reply message to be sent out.

to check if it works on your system, just run 'vacation' (No args) and it will open up a text editor for you and let you edit the reply message.
When you save and quit the text editor, it should have created a ".forward" and a ".vacation.msg" file in the home directory of that user, which should follow the format shown above. (Verify this with a 'ls -a' command)

Then send that user a mail, and see if you get a reply from it.

Otherwise, what OS/version are you running, what program are you using to send mail etc.....

HTH,
-gHoTi

Last edited by ghoti; 12-12-2001 at 12:12 PM..
# 6  
Old 12-13-2001
It is still not working. We are using sendmail 4.0 I think (very old version I know) . We need to remove the UNIX mail system and switch all the users on Exchange 5.5 mail system. The configuration in aliases file is:
alias:exchangemailadress
All the incoming mails are forwarding to the Exchange mailbox. I need to put an autoreply on this to alert sender of the internet mail adress change.

Le serveur Sendmail est un SunOS 4.1.4.

Thanks for help
# 7  
Old 12-13-2001
hi annececile,

As far as I know the aliases file is pretty much just for setting up mailing lists etc.

When you run the vacation program, what happens? do you get an error message? does it create the .forward and .vacation.msg files?

[you need to use 'ls -a' to show files with names beginning in "."]

regards,
-gHoTi

Previous Thread | Next Thread
Test Your Knowledge in Computers #826
Difficulty: Medium
JSON is a language-independent data format.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

Need help on sendmail

my requirement is user should be able put username@particular domain in from address, if he is adding anything in from address,it should not allow to send the mail. there should be restriction on from address. (2 Replies)
Discussion started by: manoj.solaris
2 Replies

2. 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

3. HP-UX

Sendmail on HP-UX?

Hello, our email server is HP-UX 11.31 and is running Sendmail and Cyrus-IMAP. We need to implement mail routing based on domain, for only a specific small group of domains. It sounds like /etc/mail/mailertable is the file where we put the routing information for each domain. I found this nice... (2 Replies)
Discussion started by: lupin..the..3rd
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. UNIX for Dummies Questions & Answers

Sendmail HELP

I am trying to configure sendmail for a client. I have edited my sendmail.cf as follows: # more sendmail.mc divert(0)dnl VERSIONID(`@(#)sendmail.mc 1.11 (Sun) 06/21/04') OSTYPE(`solaris8')dnl DOMAIN(`server.1.example.com)dnl DAEMON_OPTIONS('Port=smtp,ADR=127.0.0.1, Name=MTA')... (0 Replies)
Discussion started by: Gibby13
0 Replies

6. UNIX for Dummies Questions & Answers

Sendmail

What parameter in the sendmail is used to tell sendmail to send mail every 1min, 2min or 3min...etc Thanks Jim (1 Reply)
Discussion started by: JimboC1963
1 Replies

7. UNIX and Linux Applications

sendmail.cf

we have two mail servers and want to setup failover for DR. we have a line in sendmail.cf like this DS smtp.domain.com and this works fine...... we changed it to DS smtp1.domain.com smtp2.domain.com this is bad, we get errors of savemail panic and many bounce messages... (1 Reply)
Discussion started by: robsonde
1 Replies

8. UNIX for Dummies Questions & Answers

sendmail.... any help?

I am trying to configure sendmail (v 8.12.5-7 on Redhat Linux 8) on my server. I am unable to send or receive messages using mail command (or any command for that matter). My mailserver name: abc.com I have setup user1 to alias as user1@def.com so that all of his mails are relayed to... (5 Replies)
Discussion started by: skotapal
5 Replies

9. UNIX for Dummies Questions & Answers

sendmail

When ever I start up linux the pc hangs for 10min due to send mail. Advice how do I disable or stop this from happening?:( (1 Reply)
Discussion started by: danny howell
1 Replies

10. IP Networking

Sendmail

I have an interesting situation. So bare with me and here goes: I have a Windows XP box that connects to the internet through a Dial-Up connection. I have a SUSE 7.3 Linux box that is networked with the Windows Box and Linux uses Windows' Dial-up connection to access the internet. All is fine... (2 Replies)
Discussion started by: gdboling
2 Replies

Featured Tech Videos