The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
regarding sendmail sridharr83 HP-UX 1 12-18-2007 11:37 PM
Sendmail cobroraj Shell Programming and Scripting 0 11-09-2007 08:13 PM
sendmail lweegp UNIX for Dummies Questions & Answers 9 01-19-2006 10:32 AM
sendmail nagineni High Level Programming 0 11-22-2005 05:14 AM
Using sendmail rocker40 UNIX for Dummies Questions & Answers 4 08-19-2005 05:28 PM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-07-2001
annececile's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 42
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.
Forum Sponsor
  #2  
Old 12-07-2001
ghoti's Avatar
Registered User
 

Join Date: Jul 2001
Location: Wales
Posts: 55
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
__________________
regards,

-ghoti
  #3  
Old 12-07-2001
annececile's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 42
Thanks for your help. I'll try.
  #4  
Old 12-12-2001
annececile's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 42
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
ghoti's Avatar
Registered User
 

Join Date: Jul 2001
Location: Wales
Posts: 55
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
__________________
regards,

-ghoti

Last edited by ghoti; 12-12-2001 at 09:12 AM.
  #6  
Old 12-13-2001
annececile's Avatar
Registered User
 

Join Date: Nov 2001
Location: Paris, France
Posts: 42
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
ghoti's Avatar
Registered User
 

Join Date: Jul 2001
Location: Wales
Posts: 55
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
__________________
regards,

-ghoti
Google The UNIX and Linux Forums
Closed Thread

Tags
sendmail

« Chat | group limit »
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:52 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0