Hello, I'd like to know how can I reply a mail automaticaly. For example, if I am out of the office, all of e-mail that I receive are replied with a e-mail that say that I'm out of the office. Can I do it with sendmail? Thank you very much. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Silvia! On Wed, 29 Mar 2000, Silvia Nieto Santos wrote:
Hello,
I'd like to know how can I reply a mail automaticaly.
For example, if I am out of the office, all of e-mail that I receive are replied with a e-mail that say that I'm out of the office. Can I do it with sendmail?
Thank you very much.
Use vacation. Available on the SUSE distro or the latest version is at http://vacation.sourceforge.net Sean -- Linux User: #124682 ICQ: 679813 My Current Uptime is 0d, 2h and 40m on Linux 2.2.16 ...It said "Needs Windows 95 or better". So I installed Linux... -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hello, I want to use vacation to reply the e-mails when I'm out of the office, when sendmail is'nt running, and I send a mail with mailx, the mail with the message that is written in .vacation.msg arrives to me, but when sendmail is running the reply does`'t arrive to me. Can I use vacation with sendmail? Thank you very much -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Silvia! On Thu, 29 Jun 2000, Silvia Nieto Santos wrote:
Hello,
I want to use vacation to reply the e-mails when I'm out of the office, when sendmail is'nt running, and I send a mail with mailx, the mail with the message that is written in .vacation.msg arrives to me, but when sendmail is running the reply does`'t arrive to me.
Can I use vacation with sendmail?
You can use Vacation with any MTA including sendmail. If you tried it first and you got the message back, did you then re-initalise the vacation database (vacation -I). Otherwise it will wait for the timeout period before repling to the same email address again. Sean -- Linux User: #124682 ICQ: 679813 My Current Uptime is 0d, 11h and 40m on Linux 2.2.16 ...The dark ages were caused by the Y1K problem. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
A mié, 29 mar 2000, Silvia Nieto Santos va escriure:
Hello,
I'd like to know how can I reply a mail automaticaly.
For example, if I am out of the office, all of e-mail that I receive are replied with a e-mail that say that I'm out of the office. Can I do it with sendmail?
you can do it with procmail: ----------- file .procmailrc ------------------- # Please check if all the paths in PATH are reachable, remove the ones that # are not. PATH=/usr/bin:/bin:/usr/local/bin:. MAILDIR=/var/spool/mail/ DEFAULT=$MAILDIR/$LOGNAME LOCKFILE=$MAILDIR/$LOGNAME.lock SENDMAIL=/usr/sbin/sendmail :0 c * ^To.*simeo@* * !^from.*simeo@* * !^FROM_DAEMON * !^X-Loop: simeo@nil.fut.es | (formail -rbk -A "Precedence: junk" \ -A "X-Loop: simeo@nil.fut.es" ; cat /home/simeo/.vacance.txt) | $SENDMAIL -t # Anything that has not been delivered by now will go to $DEFAULT # using LOCKFILE=$DEFAULT$LOCKEXT --------end of .procmailrc ------------------------ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Sime?! On Thu, 29 Jun 2000, Sime? wrote:
A mi?, 29 mar 2000, Silvia Nieto Santos va escriure:
Hello,
I'd like to know how can I reply a mail automaticaly.
For example, if I am out of the office, all of e-mail that I receive are replied with a e-mail that say that I'm out of the office. Can I do it with sendmail?
you can do it with procmail:
----------- file .procmailrc -------------------
# Please check if all the paths in PATH are reachable, remove the ones that # are not.
PATH=/usr/bin:/bin:/usr/local/bin:. MAILDIR=/var/spool/mail/ DEFAULT=$MAILDIR/$LOGNAME LOCKFILE=$MAILDIR/$LOGNAME.lock SENDMAIL=/usr/sbin/sendmail
:0 c * ^To.*simeo@* * !^from.*simeo@* * !^FROM_DAEMON * !^X-Loop: simeo@nil.fut.es | (formail -rbk -A "Precedence: junk" \ -A "X-Loop: simeo@nil.fut.es" ; cat /home/simeo/.vacance.txt) | $SENDMAIL -t
Except that it doesn't catch all mailing lists, also this method sends out an email everything someone mails you. Vacation only sends out an email to an email address once a week or only after the vacation database has been re-iniatlised. Sean -- Linux User: #124682 ICQ: 679813 My Current Uptime is 0d, 13h and 49m on Linux 2.2.16 ...Any system which depends on human reliability is unreliable. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
Except that it doesn't catch all mailing lists, also this method sends out an email everything someone mails you. Vacation only sends out an email to an email address once a week or only after the vacation database has been re-iniatlised.
It is easy to do this with procamil. First thing is to make sure the vacation recipe is after all mailing list recipes (I have all the mailing list ones at the beginning of my .procmailrc. I took this from the procmail examples that come with the s/w. In my .procmailrc I have the following line (after the mailing list recipes): ######INCLUDERC=/home/username/.procmail.vacation When I go on vacation I uncomment the line. Here's what is in .procmail.vacation: :0 Whc: vacation.lock # Perform a quick check to see if the mail was addressed to us * ^To:.*myusername # Don't reply to daemons and mailinglists * !^FROM_DAEMON # Mail loops are evil * !^X-Loop: myusername@my.domain | formail -rD 8192 vacation.cache :0 ehc # if the name was not in the cache | (formail -rA"Precedence: junk" \ -A"X-Loop: myusername@my.domain" ; \ echo "This is what you want to send as the vacation message"; \ echo "You can have as much as you like here"; \ echo "-- "; cat $HOME/.signature \ ) | $SENDMAIL -oi -t The '-rD 8192' specifies a cache size of mail addresses to keep. If an address is found in the cache the vacation email is not sent. Not the same as the fixed interval of vacation but good enough. Obviously you must change myusername and my.domain to reflect your environment. Regards, Roy -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (4)
-
sean.rima@tcob1.net
-
simeo@nil.fut.es
-
snieto@sc.sas.cica.es
-
tgdcuro1@gd2.swissptt.ch