OT: Opinions wanted please

Jeff Earickson jaearick at colby.edu
Fri Dec 21 21:17:12 GMT 2012


Steve,

I am running all of this on Redhat 6.3, same as Centos.  I build and
install sendmail from source code, so I have the /usr/sbin/smrsh on my
system.  My /usr/adm/sm.bin directory looks like so:

(106)> ls -l
total 0
lrwxrwxrwx. 1 root root 26 Apr 12  2011 redirectstaff.pl ->
/etc/mail/redirectstaff.pl*
lrwxrwxrwx. 1 root root 24 Apr 12  2011 redirectstu.pl ->
/etc/mail/redirectstu.pl*
lrwxrwxrwx. 1 root root 17 Apr 12  2011 vacation -> /usr/bin/vacation*

Where the perl scripts I attached reside in /etc/mail, chown
root:mail, chmod 755.  The Mprog line in my sendmail.cf looks like:

Mprog,		P=/usr/sbin/smrsh, F=lsDFMoqeu9, S=EnvFromL/HdrFromL,
R=EnvToL/HdrToL, D=$z:/,

I would suggest using the debug feature in the script(s), and then
looking at the files it dumps in /tmp.

This is all a sendmail config issue, nothing really to do with MailScanner.
-----------------------------------
Jeff A. Earickson, Ph.D
Senior Server System Administrator
Colby College,
4214 Mayflower Hill,
Waterville ME, 04901-8842
207-859-4214 (fax 207-859-4186)
Eastern Time Zone, USA
-----------------------------------


On Fri, Dec 21, 2012 at 4:03 PM, Steve Campbell <campbell at cnpapers.com> wrote:
> Well, I'm not sure what's going on but I keep getting the message in maillog
> "Service unavailable".
>
> I soft linked in /etc/smrsh the name of the perl script to the modified
> script you provided me, added the line in aliases, ran newaliases and
> restarted MailScanner.
>
> My sendmail.cf already had the MProg line configured properly.
>
> I'm running Centos 6, by the way. Any clues? the smrsh is a little generic
> to provide a lot, since it references the smrsh.c file, which I don't have
> on my system.
>
> Thanks
>
> steve
> On 12/21/2012 10:52 AM, Jeff Earickson wrote:
>
> Steve,
>
> Since you use sendmail, have I got just the perl scripts for you.  See
> attached.
>
> If you want to see how this script performs in the real world, send
> email to "tjchrist at colby.edu",
> a person who has left and has a redirect set via redirectstaff.pl.
>
> For redirect+forwarding, see the redirectstu.pl script.  However, you
> **really** don't want to do this.
> Set a redirect and that is it.  Forwarding will bite you (or him) at some
> point.
>
> -----------------------------------
> Jeff A. Earickson, Ph.D
> Senior Server System Administrator
> Colby College,
> 4214 Mayflower Hill,
> Waterville ME, 04901-8842
> 207-859-4214 (fax 207-859-4186)
> Eastern Time Zone, USA
> -----------------------------------
>
>
> On Fri, Dec 21, 2012 at 10:18 AM, Steve Campbell <campbell at cnpapers.com>
> wrote:
>
> I've been asked to do  a dual task for one of our users. The user is
> retiring and wants all of his email forwarded to another user. He also
> wants a message returned to the sender indicating that he is retiring
> and that from here on, all email should be addressed to the user his
> email is being forwarded to.
>
> I use sendmail, so the forwarding would normally be done in the alias
> file. I don't like to do out-of-office requests, but this seems like a
> way to handle the message he wants returned to the sender. I'm not sure
> both would work at the same time anyway.
>
> I use  the user's .procmailrc to handle the OOO stuff.
>
> Can anyone suggest a better way to do this or an opinion on how I'm
> thinking of doing this please?
>
> I'd rather the retiring user to have handled the sender's notices before
> leaving but that's not going to happen.
>
> Thanks for any input.
>
> steve campbell
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>
>
>
>
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>


More information about the MailScanner mailing list