Re: Глюк с postfix`ом
Вот мой конфиг:
# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
# Need test
smtpd_helo_restrictions = reject_unknown_hostname
smtpd_etrn_restrictions = reject
smtpd_reject_unlisted_sender = yes
disable_vrfy_command = yes
smtp_always_send_ehlo = yes
smtpd_hard_error_limit = 8
smtpd_timeout = 30s
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
#myhostname = <host>
myhostname = <host>
myorigin = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
# My
inet_interfaces = all
inet_protocols = ipv4
unknown_local_recipient_reject_code = 550
На офисном серваке точно такой же конфиг (скопирован) и почта приходит как надо, а из инета какаято ерунда. Вот пример:
Delivered-To: alex.vizor@gmail.com
Received: by
10.65.151.11 with SMTP id d11cs254820qbo;
Mon, 12 Feb 2007 03:17:32 -0800 (PST)
Received: by 10.90.119.15 with SMTP id r15mr16951023agc.1171279052047
;
Mon, 12 Feb 2007 03:17:32 -0800 (PST)
Return-Path: <www-data@bisole.neolocation.net>
Received: from <serv> (<serv>)
by
mx.google.com with ESMTP id p32si8509221ugc.2007.02.12.03.17.31;
Mon, 12 Feb 2007 03:17:31 -0800 (PST)
Received-SPF: pass (google.com: domain of <serv> designates <IP> as permitted sender)
Date: Mon, 12 Feb 2007 03:17:31 -0800 (PST)
Message-Id: <45d04ccb.194ff2b0.3443.0dc6SMTPIN_ADDED@mx.google.com>
Received: by <serv> (Postfix, from userid 33)
id 1D390327D03; Mon, 12 Feb 2007 13:17:33 +0200 (EET)
To: alex.vizor@gmail.com
Subject: Привет
MIME-Version: 1.0
Subject: =?windows-1251?Q?=CF=F0=E8=E2=E5=F2?=
From: alex.vizor@gmail.com
Content-Type: text/html; charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
Message-Id: <20070212111733.1D390327D03
@<serv>>
Date: Mon, 12 Feb 2007 13:17:33 +0200 (EET)
<div>=D2=E5=F1=F2=EE=E2=EE=E5 =EF=E8=FC=EC=EE</div>
Почемуто приходит charset="windows-1251" в заголовках хотя отправлялось как utf8. Системная локоль на серваке POSIX (возможно из-за этого).
Reply to: