Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sender rewrite - relay server

105 views
Skip to first unread message

Sebastian Gil

unread,
Jul 11, 2012, 4:50:43 PM7/11/12
to
Dear all,

I've searched google and found some information but can't get this to work, I'm not an expert (nor a begginer, is the first time I configure postfix).

I've configured postfix to relay to my smtp server. In order to work I need to send mails from li...@serverddesarrollo.com.ar . There is no rule, all mail senders should be rewritten.

I've tried to rewrite sender's email using sender_canonical_maps = regexp:/etc/postfix/sender_canonical

In /etc/postfix/sender_canonical I've tried a lot of combinations, but none works

I've also tried addding local_header_rewrite_clients = static:all but nothing happens, no rewrite occurs.

Could please someone send me some example? I'm a little lost here.

Thanks in advance

Best,
Sebastian

--
Promaker
facebook twitter linked in rss
Sebastian Gil
seba...@promaker.com.ar
www.promaker.com.ar
Tel: +54 11 4632-3187
Tel: +54 11 4632-3407
Av. Donato Alvarez 120 (C1406BNO)

Ciudad Autónoma de Bs. As.
Buenos Aires - Argentina
Partner oficial:
Partner Oficial qrcode
Este es un mensaje confidencial. El mismo contiene información reservada, que no puede ser difundida. Si usted ha recibido este e-mail por error, por favor avísenos inmediatamente vía correo electrónico y tenga la amabilidad de eliminarlo de su sistema. No deberá copiar el mensaje ni divulgar su contenido. Muchas gracias.

This message is confidential. It contains information that is privileged and legally exempt from disclosure. If you have received this e-mail by mistake, please let us know immediately by e-mail and delete it from your system; you should also not copy the message nor disclose its contents to anyone. Thank you.

Sebastian Gil

unread,
Jul 13, 2012, 10:28:25 AM7/13/12
to
Hi, any hint?

Thanks,
Sebastian

2012/7/11 Sebastian Gil <seba...@promaker.com.ar>

Ralf Hildebrandt

unread,
Jul 13, 2012, 12:03:50 PM7/13/12
to
* Sebastian Gil <seba...@promaker.com.ar>:
> Dear all,
>
> I've searched google and found some information but can't get this to work,
> I'm not an expert (nor a begginer, is the first time I configure postfix).
>
> I've configured postfix to relay to my smtp server. In order to work I need
> to send mails from li...@serverddesarrollo.com.ar . There is no rule, all
> mail senders should be rewritten.
>
> I've tried to rewrite sender's email using sender_canonical_maps =
> regexp:/etc/postfix/sender_canonical

That sounds good!

> In /etc/postfix/sender_canonical I've tried a lot of combinations, but none
> works

Like which? What does the sender look like WITHOUT rewriting?

Something like:
/^.*@name.of.the.machine$/ li...@serverddesarrollo.com.ar
should work wonders.

--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hil...@charite.de | http://www.charite.de


Sebastian Gil

unread,
Jul 13, 2012, 12:20:48 PM7/13/12
to
2012/7/13 Ralf Hildebrandt <Ralf.Hil...@charite.de>

* Sebastian Gil <seba...@promaker.com.ar>:
> Dear all,
>
> I've searched google and found some information but can't get this to work,
> I'm not an expert (nor a begginer, is the first time I configure postfix).
>
> I've configured postfix to relay to my smtp server. In order to work I need
> to send mails from li...@serverddesarrollo.com.ar . There is no rule, all
> mail senders should be rewritten.
>
> I've tried to rewrite sender's email using sender_canonical_maps =
> regexp:/etc/postfix/sender_canonical

That sounds good!

> In /etc/postfix/sender_canonical I've tried a lot of combinations, but none
> works

Like which? What does the sender look like WITHOUT rewriting?

Something like:
/^.*@name.of.the.machine$/ li...@serverddesarrollo.com.ar
should work wonders.

Hi Ralf, thanks for your reply.

The sender could be any email address, but I need all emails to be rewrited to li...@serverddesarrollo.com.ar

I understand sender_canonical should be something like

*    li...@serverddesarrollo.com.ar

But I couldn't find how to specify that ALL senders should be rewrited.

Thanks
Sebastian

Ralf Hildebrandt

unread,
Jul 13, 2012, 12:22:35 PM7/13/12
to
* Sebastian Gil <seba...@promaker.com.ar>:

> > Like which? What does the sender look like WITHOUT rewriting?
> >
> > Something like:
> > /^.*@name.of.the.machine$/ li...@serverddesarrollo.com.ar
> > should work wonders.
> >
>
> Hi Ralf, thanks for your reply.
>
> The sender could be any email address, but I need all emails to be rewrited
> to li...@serverddesarrollo.com.ar
>
> I understand sender_canonical should be something like
>
> * li...@serverddesarrollo.com.ar

/.*/ li...@serverddesarrollo.com.ar

Sebastian Gil

unread,
Jul 13, 2012, 1:46:11 PM7/13/12
to
2012/7/13 Ralf Hildebrandt <Ralf.Hil...@charite.de>

* Sebastian Gil <seba...@promaker.com.ar>:

> > Like which? What does the sender look like WITHOUT rewriting?
> >
> > Something like:
> > /^.*@name.of.the.machine$/ li...@serverddesarrollo.com.ar
> > should work wonders.
> >
>
> Hi Ralf, thanks for your reply.
>
> The sender could be any email address, but I need all emails to be rewrited
> to li...@serverddesarrollo.com.ar
>
> I understand sender_canonical should be something like
>
> *    li...@serverddesarrollo.com.ar

/.*/ li...@serverddesarrollo.com.ar


Excellent Ralf! Thanks a lot!

Best,
Sebastian
0 new messages