I'm having problems getting sendmail to rewrite email addresses. I'd like to
be able to receive mail for [EMAIL PROTECTED] into
[EMAIL PROTECTED]'s mailbox. I seem to have been able to
write a rule:

R$[EMAIL PROTECTED]           $1 @ 486-tower.geode.demon.co.uk
R$*<$[EMAIL PROTECTED]>$*     $2 @ 486-tower.geode.demon.co.uk

This redirects every message addressed to geode.demon.co.uk to the
corresponding address at 486-tower.geode.demon.co.uk. I'd like this to be
the default operation, whilst having the ability to redirect other addresses
elsewhere, e.g.

[EMAIL PROTECTED]   to   [EMAIL PROTECTED]

I have written the following rule for the above:

[EMAIL PROTECTED]               [EMAIL PROTECTED]
R$*<[EMAIL PROTECTED]>$* [EMAIL PROTECTED]

All four rules have been put in a new ruleset called geode (with the peterw
ones first), and I have tested them with:

sendmail -Csendmail.cf -bt

I obtain the correct responses, but get problems when I try sending an
actual email. I receive the SMTP response:

551 we do not relay

I'm using RedHat 5.1, and understand that relaying is disabled by default
for machines outside my domain, I'd like this operation to be kept, whilst
being able to integrate the above ruleset. How might I achieve this?

TIA,

Gregory

Reply via email to