[Soci SLIP] mail originating from...

roure63 a inwind.it roure63 a inwind.it
Mar 20 Giu 2006 08:35:34 CEST


ciao, magari hai giā letto questa documentazione, a se ho ben capito la tuanecessitā č la soluzione hai tuoi problemi:


Solution 1: Postfix version 2.2 and later

Postfix 2.2 uses the generic(5) address mapping to replace local fantasy email addresses by valid Internet addresses. This mapping happens ONLY when mail leaves the machine; not when you send mail between users on the same machine.

The following example presents additional configuration. You need to combine this with basic configuration information as discussed the first half of this document.

    1 /etc/postfix/main.cf:
    2     smtp_generic_maps = hash:/etc/postfix/generic
    3 
    4 /etc/postfix/generic:
    5     his a localdomain.local             hisaccount a hisisp.example
    6     her a localdomain.local             heraccount a herisp.example
    7     @localdomain.local                hisaccount+local a hisisp.example

When mail is sent to a remote host via SMTP:

    *

      Line 5 replaces his a localdomain.local by his ISP mail address,
    *

      Line 6 replaces her a localdomain.local by her ISP mail address, and
    *

      Line 7 replaces other local addresses by his ISP account, with an address extension of +local (this example assumes that the ISP supports "+" style address extensions).

Specify dbm instead of hash if your system uses dbm files instead of db files. To find out what lookup tables Postfix supports, use the command "postconf -m".

Execute the command "postmap /etc/postfix/generic" whenever you change the generic table.
Solution 2: Postfix version 2.1 and earlier

The solution with older Postfix systems is to use valid Internet addresses where possible, and to let Postfix map valid Internet addresses to local fantasy addresses. With this, you can send mail to the Internet and to local fantasy addresses, including mail to local fantasy addresses that don't have a valid Internet address of their own.

The following example presents additional configuration. You need to combine this with basic configuration information as discussed the first half of this document.

     1 /etc/postfix/main.cf:
     2     myhostname = hostname.localdomain
     3     mydomain = localdomain
     4 
     5     canonical_maps = hash:/etc/postfix/canonical
     6 
     7     virtual_alias_maps = hash:/etc/postfix/virtual
     8 
     9 /etc/postfix/canonical:
    10     your-login-name    your-account a your-isp.com
    11 
    12 /etc/postfix/virtual:
    13     your-account a your-isp.com       your-login-name

Translation:

    *

      Lines 2-3: Substitute your fantasy hostname here. Do not use a domain name that is already in use by real organizations on the Internet. See RFC 2606 for examples of domain names that are guaranteed not to be owned by anyone.
    *

      Lines 5, 9, 10: This provides the mapping from "your-login-name a hostname.localdomain" to "your-account a your-isp.com". This part is required.
    *

      Lines 7, 12, 13: Deliver mail for "your-account a your-isp.com" locally, instead of sending it to the ISP. This part is not required but is convenient. 

Specify dbm instead of hash if your system uses dbm files instead of db files. To find out what lookup tables Postfix supports, use the command "postconf -m".

Execute the command "postmap /etc/postfix/canonical" whenever you change the canonical table.

Execute the command "postmap /etc/postfix/virtual" whenever you change the virtual table. 



ciao
andrea


---------- Initial Header -----------

>From      : soci-bounces a mail.pinerolo.linux.it
To          : soci a mail.pinerolo.linux.it
Cc          : 
Date      : Mon, 19 Jun 2006 12:23:38 +0200 (CEST)
Subject : [Soci SLIP] mail originating from...


> 
> Ciao a tutti
> 
> qualche giorno fa mi e' venuta la straordinaria idea di prendere qualche
> misura in piu' contro lo spam oltre alle cose che gia' facevo. Dopo
> dnsbl e qualche altra cosina dentro postfix ora non posso piu' ricevere
> le mail dai domini non esistenti e questo e' un bene fin quando ti
> rendi conto di avere nmila macchine con domini fittizi che ti mandano
> mail (tipo quelle di logwatch).
> 
> Quel che vorrei fare ora e fare in modo che crontab mandi mail dall'
> utente/dominio che decido io, nella maggiorparte dei casi le mail
> vengono mandate da
> utente a nome_macchina_che_non_posso_mettere_nel_dominio.dominio_esistente
> o da
> utente a nome_macchina_che_non_posso_mettere_nel_dominio.dominio_esistente.dominio_esistente
> o ancora da utente a macchina.dominiofittizio.
> 
> Sinceramente il secondo caso non lo capisco (sara' colpa del relayhost?)
> in ogni caso esiste il modo di far originare le mail da
> utente a dominio_esistente, ovviamente il dominio in questione e' mio ....
> 
> 
> echo -e '(o_\n//\\\nV_/_'
> http:/dikdust.adfacom.it
> 000 - Unknown Error Occurred But Was Lost. Windows Will Try To Remember
> 
> _______________________________________________
> Soci mailing list
> Soci a mail.pinerolo.linux.it
> http://mail.pinerolo.linux.it/mailman/listinfo/soci
> 


***************************************
Non autorizzo la
memorizzazione del
mio indirizzo di
posta a chi usa
Outlook: non voglio
essere invaso da
spam e tantomeno
figurare come
propagatore di virus

Computers are like
air conditioners:
they stop working
properly when you
open Windows.






Maggiori informazioni sulla lista Soci