I changed the suggested variables but the behaviour is the same if domain
contains dash character

The configuration changes involve:
myhostname = pippo.topo-linea.it
mydomain = topo-linea.it
myorigin =  $myhostname

After I submitted postfix reload 
 
luca gets [EMAIL PROTECTED]

As explained without dashes the address rewriting is correct: 
myhostname = pippo.topolinea.it
mydomain = topolinea.it

luca gets [EMAIL PROTECTED]  

Thanks a lot for your support.



-----Messaggio originale-----
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Per conto di Ralf Hildebrandt
Inviato: mercoledì 13 agosto 2008 10.26
A: postfix-users@postfix.org
Oggetto: Re: domains with dashes and incomplete addresses rewriting problem

* Luca Cazzaniga <[EMAIL PROTECTED]>:
> hello, i've problem about incomplete address rewriting
> my test configuration file /etc/postfix/main.cf reported below
> 
> myhostname = pippo
> mydomain = topo-linea.it

That's wrong.
You need to use:
myhostname = pippo.topo-linea.it
mydomain = topo-linea.it

> myorigin = $myhostname.$mydomain

That's wrong. Use the default (myorigin = $myhostname) instead.

> mydestination = $myhostname.$mydomain, $myhostname, localhost.$mydomain,
localhost
You need to correct this as well.

> mynetworks = 127.0.0.0/8

> relayhost =
default
> append_at_myorigin = yes
default
> append_dot_mydomain = yes
default
     
> Another variables involved in rewriting get the default:
> 
> # postconf local_header_rewrite_clients
> local_header_rewrite_clients = permit_inet_interfaces
> # postconf remote_header_rewrite_domain
> remote_header_rewrite_domain =
> 
> i realize that a sender address without domain is rewrited appending the
> @mydomain instead @myorigin

No. A sender address without domain is gets @$myorigin
 
-- 
Ralf Hildebrandt ([EMAIL PROTECTED])          [EMAIL PROTECTED]
Postfix - Einrichtung, Betrieb und Wartung       Tel. +49 (0)30-450 570-155
http://www.arschkrebs.de
One of the main causes of the fall of the Roman Empire was that,
lacking zero, they had no way to indicate successful termination of
their C Programs. 


--
************** ATTENZIONE !!! **************
Il presente messaggio ed i suoi allegati devono intendersi ad uso esclusivo dei 
suoi destinatari e sono confidenziali. Se ricevete questo messaggio per errore, 
Vi preghiamo di cancellarlo, di distruggerne ogni copia e di informarci 
immediatamente.
Internet non garantisce l'integrita' dei messaggi. A.M.S. (Asset Management 
Service) declina pertanto ogni responsabilita' in caso di intercettazione o 
modifiche del presente messaggio.
A.M.S. (Asset Management Service) non assume alcuna responsabilita' riguardo al 
contenuto del presente messaggio; le opinioni ivi espresse sono quelle 
dell'autore.
-------------- WARNING !!! --------------
This message and any attachments is intended solely for the use of the intended 
addressees and is confidential. If you receive this message in error, please 
delete it, destroy all copies and immediately notify us.
Internet can not guarantee the integrity of this message. A.M.S. (Asset 
Management Service) shall (will) not therefore be liable for interception or 
amendment of this message.
A.M.S. (Asset Management Service) accepts no responsibility as to the contents 
of this message: the opinions expressed therein are solely the writer's.
**********************************************

Reply via email to