mumphis has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: non deliverable email
by phydeauxarff (Priest) on Mar 30, 2003 at 13:38 UTC
    Yes, you will need the From: address to be what in you intended in order for the mail to be returned.

    As for "anything special to add to the code" it is difficult for us to analyze because you aren't telling us what you are doing, nor have you provided any code for us to 'evaluate'.

    I see that your other posts follow this same format and would humbly suggest you read the node How do I post a question effectively? for some general guidance and then...

    Come back and provide us a bit more information about exactly what it is you are attempting that isn't working.

Re: non deliverable email (OT)
by jlongino (Parson) on Mar 30, 2003 at 19:37 UTC
    I'm not an expert in this area (even though I'm a sysadmin type) there are several reasons why undeliverable mail may not be returned to you. I've listed a few reasons that immediately come to mind though I'm certain that there are many other plausible reasons as well.

    Keep in mind how mail usually makes several jumps between sites before reaching its destination, and the fact that problems can occur at any one of those sites. Sometimes mail flow becomes clogged because an intermediate site is down and there's no alternate path to take. At one time, all incoming mail to my work site (Mobile, Alabama) had to pass through Huntsville before it could get here. If the Huntsville site was down, we couldn't send/receive mail until it recovered. Related to this scenario is one in which a "critical path" site has a problem with their Domain Name Server, which can sometimes become corrupted or--if an independent box--downed. Mail can be delayed for up to 3 or 4 days while waiting for the impaired site to recover. If the downed site doesn't recover within the alotted time, a return-to-sender attempt is made. So if it hasn't been at least 3 or 4 days since you sent the message, you may still get it.

    Sometimes, a site administrator develops custom sendmail wrappers that try to filter/process mail for specific reasons. I develop custom filters that are used for bulkmail delivery purposes (note: our bulkmail is internal). Sometimes wrapper bugs can bypass normal sendmail processes and accidently trash incoming mail. The bug may be minor and escape the programmer's notice.

    An unlikely but still plausible scenario is that although a recipient account has been login disabled, it hasn't been removed from the system. The mail is sucessfully delivered, but the intended receiver believes that the account doesn't exists anymore. I'm sure that I probably have at least 3-5 accounts of this type on my systems right now (makes note to self to check/remove locked accounts).

    Another unlikely but possible situation occurs sometimes at my workplace. We have two major email servers: one Unix-based and the other Groupwise. It is possible for a departmental authority to call and request Groupwise accounts for a group of people. The people involved sometimes already have the Unix-based account and are unaware that they have a Groupwise account. Next thing I know users call wanting to know what happened to an important memo they know has been sent to them but they haven't received. The sender won't receive an undeliverable reply since the message was delivered.

    Rather than focus on the "from" address, have you determined for certain that the "to" address exists and is deliverable? Sometimes resolving this type of problem can only be accomplished by contacting the postmaster of the delivery site involved.

    --Jim

Re: non deliverable email
by waswas-fng (Curate) on Mar 30, 2003 at 16:51 UTC
    Yes, I agree, what Mail mod are you using?whats the code look like? are you sure the from is actually being set in your code like you expect?

    Your question is unanswerable in its current state.

    -Waswas
Re: non deliverable email
by graff (Chancellor) on Mar 30, 2003 at 20:44 UTC
    This wouldn't happen to be a cgi script, would it? If so, then the problem is simply that bounces are going to the "user account" that runs your web server (and maybe are not deliverable)... As others have said, more info would be helpful.
Re: non deliverable email
by Tomte (Priest) on Mar 31, 2003 at 09:20 UTC

    graff (++) hit the nail on the head: Neither From: nor Reply To: are used to send 'Error-Information' Mails. The MTA uses the Return-Path: header. And this header can't be manipulated manualy, as it is set by the last MTA that treats your mail to the actual sender.

    read more in the corresponding rfc 2076 (Common Internet Message Headers) Section 3.2 and rfc 821 (smtp) page 20ff..

    regards,
    tomte