Достался мне сервак с установленным postfix-ом и своими проблемами :(В логах постоянно вылазит такая ошибка
Jan 22 05:54:44 mail,redoctober postfix/virtual[94184]: warning: valid_hostname: invalid character 44(decimal): mail,redoctober.kiev.ua
Jan 22 05:54:44 mail,redoctober postfix/virtual[94184]: fatal: unable to use my own hostname
Jan 22 05:54:45 mail,redoctober postfix/qmgr[77786]: warning: premature end-of-input on private/virtual socket while reading input attribute name
Jan 22 05:54:45 mail,redoctober postfix/qmgr[77786]: warning: private/virtual socket: malformed response
Jan 22 05:54:45 mail,redoctober postfix/qmgr[77786]: warning: transport virtual failure -- see a previous warning/fatal/panic logfile record for the problem description
Jan 22 05:54:45 mail,redoctober postfix/master[77784]: warning: process /usr/local/libexec/postfix/virtual pid 94184 exit status 1
Jan 22 05:54:45 mail,redoctober postfix/master[77784]: warning: /usr/local/libexec/postfix/virtual: bad command startup -- throttling
Jan 22 05:54:45 mail,redoctober postfix/qmgr[77786]: 9F1C0BA06: to=<proha@redoctober.kiev.ua>, relay=none, delay=1, status=deferred (delivery temporarily suspended: unknown mail transport error)Вот main.cf
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfixsetgid_group = maildrop
myhostname = mail.redoctober.kiev.uamydomain = redoctober.kiev.ua
mynetworks = 192.168.0.0/24 127.0.0.0/8
#relay_domains = $mydestination
#relay_domains_reject_code = 554virtual_mailbox_base = /var/mail/virtual
virtual_uid_maps = static:125
virtual_gid_maps = static:125
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = mysql:/usr/local/etc/postfix/mysql_virtual_mailboxes_maps.cf
virtual_transport = virtualmyorigin = $mydomain
mydestination = localhost
local_transport = virtualcontent_filter = scan:127.0.0.1:10025
receive_override_options = no_address_mappingsalias_database = hash:/etc/aliases
check_sender_access = mysql:/usr/local/etc/postfix/restricted_senders.cf
check_recipient_access = mysql:/usr/local/etc/postfix/local_domains.cfsmtpd_banner = mail.redoctober.kiev.ua READY
smtpd_helo_required = yes
smtpd_always_send_ehlo = yes
smtpd_hard_error_limit = 8
smtpd_timeout = 60s
smtpd_helo_timeout = 30s
smtpd_mail_timeout = 30s
smtpd_rcpt_timeout = 30s
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_etrn_restrictions = rejectsmtpd_recipient_restrictions = permit_mynetworks, permit_mx_backup, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, check_
relay_domains, reject_unknown_client, reject
smtpd_client_restrictions = permit_mynetworks,
reject_unknown_client,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client dul.dnsbl.sorbs.netsmtpd_sender_restrictions = permit_mynetworks,reject_unknown_address,reject_invalid_hostname
smtpd_restriction_classes = local_onlylocal_only = check_recipient_access,reject_unauth_destination
disable_vrfy_command = yes
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2readme_directory = /usr/local/share/doc/postfix
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
html_directory = no
setgid_group = maildrop
manpage_directory = /usr/local/man
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailqunknown_local_recipient_reject_code = 550
Вот master.cf
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd -o content_filter=spamassassin
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
scan unix - - n - 16 smtp
-o smtp_send_xforward_command=yes
127.0.0.1:10026 inet n - n - 16 smtpd
-o content_filter=
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks_style=host
-o smtpd_authorized_xforward_hosts=127.0.0.0/8
spamassassin unix - n n - - pipe user=nobody argv=/usr/local/bin/spamc -e /usr/local/sbin/sendmail -oi -f ${sender} $Вопрос: откуда может выплывать эта ошибка??? :o :o :o
grep "mail,redoctober.kiev" /usr/local/etc/postfix/*
Jan 22 05:54:44 mail,redoctober postfixПочему hostname через запятую?
>Jan 22 05:54:44 mail,redoctober postfix
>
> Почему hostname через запятую?Это товаришь и спрашивает, и не поймет откуда это берется.
>>Jan 22 05:54:44 mail,redoctober postfix
>>
>> Почему hostname через запятую?
>
>Это товаришь и спрашивает, и не поймет откуда это берется.А если удалить эту срочку в конфиге и заново ее полностью правильно набрать?
Приведите вывод hostname
>Приведите вывод hostnameСпасибо.
Проблема как раз в нем и заключалась. Как то я упустил этот момент из виду..
Подправил файл rc.conf и все забегало.
>>Jan 22 05:54:44 mail,redoctober postfix
>>
>> Почему hostname через запятую?
>
>Это товаришь и спрашивает, и не поймет откуда это берется.Да потому, что у него в hostname скорее всего через запятую и написано.