On 2008-08-08 16:56:04 +0530, Shamly wrote:
>    I need to forward all mails received to the qpsmtp daemon to another 
> SMTP relay. In general this should work, but my requirement is to change 
> the address from [EMAIL PROTECTED] to [EMAIL PROTECTED] as the 
> mailhost on the other side accepts only mails to "ydomain.com". At 
> present all mails forwarded by the smtp-forward plug in goes as the 
> original "xdomain.com" name. Any suggestions guys .. do i have to do 
> this manually ?

Have a look at my aliases plugins (aliases_check and aliases_rewrite) in
the contrib directory. They change the recipient(s) in the data_post
hook and support limited wildcards. In your case the config file would
probably consist of a single line:

    [EMAIL PROTECTED]: [EMAIL PROTECTED]

        hp

-- 
   _  | Peter J. Holzer    | Openmoko has already embedded
|_|_) | Sysadmin WSR       | voting system.
| |   | [EMAIL PROTECTED]         | Named "If you want it -- write it"
__/   | http://www.hjp.at/ |  -- Ilja O. on [EMAIL PROTECTED]

Attachment: signature.asc
Description: Digital signature

Reply via email to