×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Vacation script for CentOs 64 bit Sendmail / SquirrelMail - any ideas?

Vacation script for CentOs 64 bit Sendmail / SquirrelMail - any ideas?

Vacation script for CentOs 64 bit Sendmail / SquirrelMail - any ideas?

(OP)
(Elementary user)

Can anyone recommend a Vacation script to use with CentOs Sendmail/Squirrel Mail?

Best regards

RE: Vacation script for CentOs 64 bit Sendmail / SquirrelMail - any ideas?

This works for me for our site in procmailrc, had a difficult time with the  Domain name with all the different versions of Outlook on the network.  Put domain name in testdomain file , vac users in vac file when they go on vacation  an dvacation message in .msg for each user. Norm

# Vacation recipe - enter names in /etc/mail/spamassassin/vac
TO=`formail -x To:`
FIRST=`echo "$TO" |sed -n '1p'| awk -F"<" '{print $2}'`
FIRSTX=`echo "$FIRST" | awk -F"@" '{print $1}'`
DOMAIN1=`echo "$FIRST" | awk -F">" '{print $1}'`
DOMAINX=`echo "$DOMAIN1" |awk -F"@" '{print $2}'`


:0 whc: /tmp/vacation.lock
* ? (echo "$DOMAINX" | $FGREP -i -x -f /etc/testdomain)
* ? (echo "$FIRSTX" | $FGREP -i -x -f /etc/mail/spamassassin/vac)
* !^FROM_DAEMON
* !^X Loop: $TO
| formail -rD 8192 /etc/mail/spamassassin/vac_cache/$FIRSTX.cache

:0 ehc
| (formail -rA"Precedence: junk" \
  -A"X-Loop: $TO" ; \
  cat "/etc/mail/spamassassin/vacmessages/$FIRSTX.msg" \
  ) | $SENDMAIL -oi -t

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close