procmail
[Top] [All Lists]

Re: Forwarding blocked by ISP, using sendmail instead

2007-02-08 14:52:10
At 16:18 2007-02-08 +0000, Paul Goodyear wrote:

I therefore used sendmail

Which, er, is what the ! uses.

You can use $SENDMAIL instead of punching in the path in your recipe.  If 
$SENDMAIL isn't automatically set properly by procmail, then you can SET it 
to what it needs to be.  Benefits are that (if your ISP wasn't hosing your 
regular forward), the ! forward would still invoke whatever you changed 
$SENDMAIL to be, and ALL occurrences of $SENDMAIL in your scripts would 
point to the right program, AND, when running under a sandbox which might 
redefine $SENDMAIL to point to a capture program, THAT will work as well 
(whereas invoking sendmail from a hard coded path won't.

:0 c
| '/usr/sbin/sendmail' -fme(_at_)mydomain(_dot_)com 
user(_at_)testdomain(_dot_)com

No need to put it in tickmarks either.

This works but then becuase of the -f it appends the following header,
and could be bad at some point:

X-Authentication-Warning: mail.local_domain.local: user1 set sender to
user1(_at_)mydomain(_dot_)com using -f

You're not listed as a trusted user in the MTA.  Not surprising, since only 
daemon type users (including listserves) should be listed there.

I'd consider speaking with the admins of the system and asking what can be 
done to allow you to simply FORWARD your messages.  The fact that they 
don't bounce them is irritating (be sure to send a test message from 
another account to make sure they're not bouncing them to the original 
sender though!).

I take it this could actually be either a Procmail, Sendmail or ever a
system issue. (Do I need to set each local users email address on the
system so that mails from are from their address and not local systems
location?)

It's the MTA configuration.  They've probably got some rule set up that 
discards the messages if they're outbound and not apparenrly from the local 
domain(s).

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail