Gossamer Forum
Home : General : Internet Technologies :

dead.letter file showing up? you might need a -f

Quote Reply
dead.letter file showing up? you might need a -f
Hi All

I recently heard that sendmail has introduced a fix that should help prevent spamming through other people's mail servers.

The problem is that this new file started to be created - dead.letter

Here is what I heard:

Quote:
You might have to add -f to your mail() line.

mail($email, $subject, $message, $mailheaders,"-femailfrom@address.com");

The address in -f is the email address it's coming from. Simply add that and it should correct the problem. Its to help prevent spamming through other peoples mail servers (the fix to sendmail).

It solved it for our perl script.

HTH Smile

------------------------------------------

Last edited by:

DogTags: May 16, 2004, 5:13 AM
Quote Reply
Re: [DogTags] dead.letter file showing up? you might need a -f In reply to
Cool, I'll have a look at that.. may help in the future if people are having similar problems :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] dead.letter file showing up? you might need a -f In reply to
Yeah. Even my host hadn't heard of this Smile

------------------------------------------
Quote Reply
Re: [DogTags] dead.letter file showing up? you might need a -f In reply to
Hi,

-f isn't new, it just sets the envelope from (i.e. who the mail is really from, and what mail servers look at when bouncing messages). It's not really related to spamming, but is a good idea to set as you can control where bounces go.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] dead.letter file showing up? you might need a -f In reply to
Thanks, Alex Smile

The creation of the dead.letter file never occurred before. That's what got me. The script that caused it has been used for years without such an issue. I guess there is some setting at the current host that invoked this.

Cheers Cool

------------------------------------------
Quote Reply
Re: [DogTags] dead.letter file showing up? you might need a -f In reply to
FYI

Sometimes I see a file called mbox in my "home" directory and that is where my webhost appends bounced messages that have fake return address for our domain. After it hits a meg or so I'll upload an empty file over it just to keep things tidy.