[Qmail-it] Da un account a piu' account
Fabio Busatto
fabio.busatto at sikurezza.org
Fri Nov 24 10:44:49 CET 2006
On Fri, Nov 24, 2006 at 09:45:32AM +0100, Davide Michel 'ZioBudda' Morelli wrote:
> * the mailbox must receive one copy of the message for each envelope
> recipient in the domain; if the message was addressed to three
> local-parts in the domain, the mailbox must receive three separate
> copies of the message.
Ne riceve tante quanti sono i destinatari (ovvero i comandi RCPT TO), quindi
questo e` ok.
> * the envelope sender address must be recorded in a header field
> named Return-Path at the top of the message. If the message
> (incorrectly) already contained such a header field, it must be
> deleted before the envelope sender address is recorded.
Questo e` ok.
> * the envelope recipient address must be recorded in a new header
> field. These may be named various things, but are commonly
> Delivered-To, X-Envelope-To, and similar values. In the case of
> messages which had multiple recipients in the domain, this must be
> a single address, reflecting the particular recipient of this copy
> of the message. Note that this field (and the envelope recipient
> address) are not related to informational header fields created by
> the originating MUA, like To or cc.
Eh, qui il problema e` un po' piu` grosso.. il fatto e` che se usi utenti
virtuali (ad esempio con vpopmail), e usi una riga del genere nel tuo file
.qmail-default
./postmaster/Maildir/
l'header Delivered-To risulta contenere un valore del tipo dominio-user at dominio
(per come funziona la gestione dei domini virtuali in qmail.
A questo punto, ci sono due possibilita`:
- getmail capisce e delivera bene il messaggio (questo significa che getmail
capisce i virtual domain di qmail
- getmail non ne capisce una mazza e tenta di inoltrare l'email all'utente
che ovviamente non esiste
Nel secondo caso, si puo` risolvere in due modi:
- non usare il semplice .qmail-default scritto sopra, ma metterci qualcosa di
un po' piu` complesso che riscriva l'header Delivered-To in maniera corretta
|preline sed -e "s/^Delivered-To: .*$/Delivered-To: $DEFAULT@$HOST/" > `mktemp ./postmaster/Maildir/new/template.XXXXXX`
- usare fetchmail + procmail (o un'altra accoppiata simile) per potersi scrivere
le proprie regole al posto di getmail, cosi` da istruire alla corretta gestione
dei virtual domain di qmail
Sai che ti dico? Divertiti :)
Ciao ciao
-fabio
More information about the Qmail-it
mailing list