Adding/Removing Headers with Sendmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



To deliver joe.bloggs.sa...@xxxxxxxxxxx to joe.blo...@xxxxxxxxxxx and 
s....@xxxxxxxxxxx do this:

in /etc/mail/local-host-names:

example.com

in

/etc/mail/virtusertable

joe.bloggs.sa.....@xxxxxxxxxxx            joe.bloggs
s....@xxxxxxxxxxx                               
alternate-email-address-or-username-on-this-box-of-"s....@xxxxxxxxxxx"

in /etc/aliases

joe.bloggs:            
joebloggs-mailbox-name-here-or-other-email-address,  s....@xxxxxxxxxxx

you can combine the virtusertable entry and the alias part for the 
s....@xxxxxxxxxxx into one entry... as follows if you prefer

remove the s....@xxxxxxxxxxx                               
alternate-email-address-or-username-on-this-box-of-"s....@xxxxxxxxxxx" 
from /etc/mail.virtusertable

and modify /etc/aliases line as follows:

joe.bloggs:            
joebloggs-mailbox-name-here-or-other-email-address, 
alternate-email-address-or-username-on-this-box-of-"s....@xxxxxxxxxxx"


if you want a catchall,

in /etc/mail/virtusertable

@example.com         catchall-alias-name-username-or-alternate-email-address

if you want to re-write

in /etc/mail/virtusertable

@somewhereelse.com             %1@xxxxxxxxxxx

but in this latter case somewhereelse.com must be listed in 
/etc/mail/local-host-names as well.      

Hope this gives you a starting point

Pete



Romeo Ninov wrote:

> My personal opinion is what you want can have in some cases 
> unpredictable results, so I propose you to use only some kind of list 
> managers (as listar for example)
>
> Lee W wrote:
>
>> Hi,
>>
>> I posted this query a few weeks ago but never received a response. 
>> I'm guessing that I didn't put things right, so here is another go.
>>
>> The company that I work for currently has email addresses in the 
>> format of:-
>>
>> firstname.surname.ext@xxxxxxxxxxx
>>
>> Which we use for various marketing campaigns (therefore the .ext bit is
>> variable).
>>
>> Currently we have this setup as distribution lists with exchange  so
>> that any email that goes to this addressess goes both to the sales
>> person and to a catch all mailbox which is then input into our systems.
>>
>> I was wondering if it would be possible so that when an email is
>> received to this format of address it automatically determines where to
>> send it as follows
>>
>> An email comes into joe.bloggs.sa...@xxxxxxxxxxx this then gets split so
>> that it is delivered to joe.blo...@xxxxxxxxxxx and also 
>> s...@xxxxxxxxxxxx
>>
>> I think that i have figured out how to rewrite to the second address but
>>  how can I get it to send it to the new address as well.  I was hoping
>> there would be a way of doing this automatically so that we don't have
>> to setup these addresses for every new starter and they apply on a
>> global basis.
>>
>> Hopefully that explains better what I am after.
>>
>> Regards
>>
>> Lee
>> _______________________________________________
>> CentOS mailing list
>> CentOS@xxxxxxxxxx
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux