Find the answer to your Linux question:
Results 1 to 4 of 4
Just a simple question about forwarding. Is it possible to use a .forward file to forward mail automaticly but also leave a copy in the account? I've been using it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    127

    forwarding with sendmail?


    Just a simple question about forwarding.

    Is it possible to use a .forward file to forward mail automaticly but also leave a copy in the account? I've been using it to forward for awhile without problems. I can't figure out hwo to make it also leave a copy on the server though.

  2. #2
    Just Joined!
    Join Date
    Apr 2005
    Location
    Romania
    Posts
    42
    Sendmail allows you to put a \ character before an entry in a .forward file which tells it not to expand that entry if it's an alias.
    So, put in .forward:
    \abc #no further forwarding processing
    xyz@dot.com #the same e-mail will be send to xyz@dot.com

  3. #3
    Linux Newbie
    Join Date
    Nov 2004
    Posts
    127
    Alright, sounds good, thanks.

  4. #4
    Just Joined!
    Join Date
    Apr 2006
    Posts
    1

    rewriting a rule

    Hi,

    I have a similar question, if you can help I will be grateful.

    I am using linux fedora and sendmail, local domain name is xyz.com.
    I am using the linux sendmail server a a relay server, all my other servers sends the mail through these linux servers..
    I mean there is no mailbox locally on linux servers for users..
    And I want to redirect some of the email adresses to some other addresses.
    for example:
    when sendmail takes the mail for a recepient a@xyz.com, I want to rewrite it as a@xxx.com.

    I tried this for other virtual domains it worked but for the local domain it does not work, what should I do? do you have any idea?

    Kind Regards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •