Gossamer Forum
Home : General : Perl Programming :

Bouncing email using SendMail

Quote Reply
Bouncing email using SendMail
Hi:

I'd like to be able to bounce undeliverable email to my POP email address. I currently have SendMail setup as:

/usr/lib/sendmail -t

I believe I have to set the Return-Path (using the -f flag?) as my Email address instead as 'nobody' as it is now. Right now all bounced email is sent to a root location on my server which I lack access.

BTW, with my last server, they were able to bounce email to either as a text file in my directory or to my email address with no intravention on my part. How they do that?

Thanks... Dan Smile
Quote Reply
Re: Bouncing email using SendMail In reply to
Try setting Reply-To as well to your email address.

Hope this helps,

Alex
Quote Reply
Re: Bouncing email using SendMail In reply to
Pardon me for being dense, but I'm not sure of how to do this. Is it just

print MAIL "Reply-to: $admin_email\n";

given that $admin_email holds my email address? Does it need to go just after the "From:" line or does it matter?

Thanks much!



------------------
JPD
Quote Reply
Re: Bouncing email using SendMail In reply to
Hi JPD:

That's it and the order is unimportant. But what I used instead is:

$mailprog = "/usr/lib/sendmail -f myname\@mydomain.com -t";

This will direct SendMail to bounce returned mail to the email address following the -f flag.

Dan Smile
Quote Reply
Re: Bouncing email using SendMail In reply to
Thanks, dan!

I'm gonna have to find out about more of the options with sendmail!

Thanks again.



------------------
JPD