Ho realizzato un server mail postfix che si appoggia ad un relay esterno. Le mail vengono spedite correttamente.
Non riesco a capire perchè le mail mi arrivano con un mittente nella forma:
utente§domionio.it
L'invio sui log appare giusto:
Quote:
6AF84788058: from=<utente@dominio.it>, size=706, nrcpt=1 (queue active)...
Jun 6 16:13:57 WebServer postfix/smtp[3836]: 6AF84788058: to=<xxx@gmail.com>, relay=miail.esterno.it[]:25, delay=1, delays=0.06/0.01/0.49/0.47, dsn=2.6.0, status=sent (250 2.6.0 704 bytes received in 00:00:00; Message id NUV62504 accepted for delivery)
Jun 6 16:13:57 WebServer postfix/qmgr[3827]: 6AF84788058: removed
ho creato anche il file sender_canonical in modo che associasse:
utente§dominio.it utente@dominio.it
Ma non pare che la cosa funzioni.
Dove posso sbagliare???
Il mio file di configurazione è:
WebServer:/etc/postfix# postconf -n<br />alias_database = hash:/etc/aliases<br />alias_maps = hash:/etc/aliases<br />allow_percent_hack = yes<br />append_dot_mydomain = no<br />config_directory = /etc/postfix<br />disable_dns_lookups = no<br />inet_interfaces = all<br />mailbox_size_limit = 0<br />masquerade_classes = envelope_sender, header_sender, header_recipient<br />masquerade_domains = dominio.it<br />mydestination = WebServer.dominio.bl, localhost.dominio.bl, localhost<br />myhostname = WebServer.dominio.bl<br />mynetworks = 127.0.0.0/8, 192.168.0.0/16<br />myorigin = /etc/mailname<br />readme_directory = no<br />relayhost = [mail.esterno.it]<br />sender_canonical_maps = hash:/etc/postfix/sender_canonical<br />smtp_sasl_auth_enable = yes<br />smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd<br />smtp_sasl_security_options =<br />smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache<br />smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/helo_client_exceptions, permitsmtpd_helo_required = yes<br />smtpd_helo_required = no<br />smtpd_helo_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/helo_client_exceptions, reject_unknown_client, reject_invalid_hostname, reject_unauth_pipelining, reject_unknown_hostname, reject_non_fqdn_hostname,<br />smtpd_recipient_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/helo_client_exceptions, reject_unauth_destination<br />smtpd_sender_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/helo_client_exceptions, reject_non_fqdn_sender, reject_unauth_pipelining, reject_unknown_sender_domain<br />smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem<br />smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key<br />smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache<br />smtpd_use_tls = yes<br />strict_rfc821_envelopes = no<br />




Ho risolto aggiungendo la direttiva:
local_header_rewrite_clients = permit_inet_interfaces, permit_mynetworkse assieme a:
sender_canonical_maps = hash:/etc/postfix/sender_canonicalottengo il mapping degli indirizzi contenuti in sender_canonical e quindi
utente§dominio.it è mappato in utente@dominio.it
Inoltre ho aggiunto la codifica dei caratteri it_IT ISO-8859-1 oltre
it_IT.UTF-8 UTF-8 che era quella di default. Adesso la codifica di default di è it_IT ISO-8859-1 (dpkg-reconfigure locales).
Saluti.
[=x-small]Knowledge is power: SHARE IT BABY!!![/]
_____________________________________________