Ciao a tutti, non voglio inquinare il post di qualcun altro, ma avrei bisogno di un aiuto sullo stesso argomento e mi spiace sempre aprire una nuova discussione. per cui procedo a postare la mia richeista:
Ho installato un server di posta con postfix sul mio server virtuale hostato da gandi.net.
Utilizzo: Il server di posta mi serve unicamente per utilizzare la FUNZIONA PHPMAIL() del mio negozio che gira sul server, in modo da poter ricevere su 2 indirizzi impostati sul negozio le richeiste di ordine , iscrizione ecc!
Il server non deve fare altro, non viene usato per la posta del dominio (uso le google apps) o per una rete locale!
Ho seguito circa 100 guide in una settimana senza troppi risultati!
Ora ho installato anche cyrus e sasl perchè altrimenti ricevevo un errore sasl autetication!
Attualmente lo stato del server è il seguente:
POSTFIX riceve le mail inviate tramite phpmail(), e le mette in coda, ma non invia nulla!
Codice: Seleziona tutto
Mar 19 10:03:03 PINEAPPLE postfix/error[9003]: 521774EE4: to=<info@pineappleitaly.com>, relay=none, delay=900, delays=600/300/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Ho sicuramente sbagliato qulcosa nei file di configurazione, ma non riesco davvero a capire cosa!
LOG:
mail.log
Codice: Seleziona tutto
Mar 19 09:58:03 PINEAPPLE postfix/qmgr[8957]: 521774EE4: from=<provami@132.it>, size=20522, nrcpt=1 (queue active)
Mar 19 09:58:03 PINEAPPLE postfix/smtpd[8995]: connect from localhost[127.0.0.1]
Mar 19 10:03:03 PINEAPPLE postfix/smtpd[8995]: timeout after CONNECT from localhost[127.0.0.1]
Mar 19 10:03:03 PINEAPPLE postfix/smtpd[8995]: disconnect from localhost[127.0.0.1]
Mar 19 10:03:03 PINEAPPLE postfix/qmgr[8957]: warning: unexpected end-of-input from private/smtp socket while reading input attribute name
Mar 19 10:03:03 PINEAPPLE postfix/qmgr[8957]: warning: private/smtp socket: malformed response
Mar 19 10:03:03 PINEAPPLE postfix/error[9003]: 521774EE4: to=<info@pineappleitaly.com>, relay=none, delay=900, delays=600/300/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
mail.info
Codice: Seleziona tutto
Mar 19 09:47:49 PINEAPPLE postfix/postsuper[8960]: Deleted: 1 message
Mar 19 09:48:03 PINEAPPLE postfix/pickup[8955]: 521774EE4: uid=33 from=<provami@132.it>
Mar 19 09:48:03 PINEAPPLE postfix/cleanup[8964]: 521774EE4: message-id=<20100319094803.2729.301155629.swift@www.pineappleitaly.com>
Mar 19 09:48:03 PINEAPPLE postfix/qmgr[8957]: 521774EE4: from=<provami@132.it>, size=20522, nrcpt=1 (queue active)
Mar 19 09:48:03 PINEAPPLE postfix/smtpd[8966]: connect from localhost[127.0.0.1]
Mar 19 09:50:42 PINEAPPLE postfix[8980]: fatal: usage: postfix [-c config_dir] [-Dv] command
Mar 19 09:50:51 PINEAPPLE postfix[8983]: fatal: usage: postfix [-c config_dir] [-Dv] command
Mar 19 09:53:03 PINEAPPLE postfix/smtpd[8966]: timeout after CONNECT from localhost[127.0.0.1]
Mar 19 09:53:03 PINEAPPLE postfix/smtpd[8966]: disconnect from localhost[127.0.0.1]
Mar 19 09:53:03 PINEAPPLE postfix/qmgr[8957]: warning: unexpected end-of-input from private/smtp socket while reading input attribute name
Mar 19 09:53:03 PINEAPPLE postfix/qmgr[8957]: warning: private/smtp socket: malformed response
Mar 19 09:53:03 PINEAPPLE postfix/error[8989]: 521774EE4: to=<info@pineappleitaly.com>, relay=none, delay=300, delays=0.02/300/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 19 09:58:03 PINEAPPLE postfix/qmgr[8957]: 521774EE4: from=<provami@132.it>, size=20522, nrcpt=1 (queue active)
Mar 19 09:58:03 PINEAPPLE postfix/smtpd[8995]: connect from localhost[127.0.0.1]
Mar 19 10:03:03 PINEAPPLE postfix/smtpd[8995]: timeout after CONNECT from localhost[127.0.0.1]
Mar 19 10:03:03 PINEAPPLE postfix/smtpd[8995]: disconnect from localhost[127.0.0.1]
Mar 19 10:03:03 PINEAPPLE postfix/qmgr[8957]: warning: unexpected end-of-input from private/smtp socket while reading input attribute name
Mar 19 10:03:03 PINEAPPLE postfix/qmgr[8957]: warning: private/smtp socket: malformed response
Mar 19 10:03:03 PINEAPPLE postfix/error[9003]: 521774EE4: to=<info@pineappleitaly.com>, relay=none, delay=900, delays=600/300/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Mar 19 10:06:37 PINEAPPLE cyrus/ctl_cyrusdb[9012]: checkpointing cyrus databases
Mar 19 10:06:37 PINEAPPLE cyrus/ctl_cyrusdb[9012]: done checkpointing cyrus databases
mail.warn
Codice: Seleziona tutto
Mar 19 09:40:28 PINEAPPLE postfix/qmgr[8774]: warning: unexpected end-of-input from private/smtp socket while reading input attribute name
Mar 19 09:40:28 PINEAPPLE postfix/qmgr[8774]: warning: private/smtp socket: malformed response
Mar 19 09:47:14 PINEAPPLE postfix/postfix-script[8845]: error: unknown command: 'reaload'
Mar 19 09:47:14 PINEAPPLE postfix/postfix-script[8847]: fatal: usage: postfix start (or stop, reload, abort, flush, check, status, set-permissions, upgrade-configuration)
Mar 19 09:50:42 PINEAPPLE postfix[8980]: fatal: usage: postfix [-c config_dir] [-Dv] command
Mar 19 09:50:51 PINEAPPLE postfix[8983]: fatal: usage: postfix [-c config_dir] [-Dv] command
Mar 19 09:53:03 PINEAPPLE postfix/qmgr[8957]: warning: unexpected end-of-input from private/smtp socket while reading input attribute name
Mar 19 09:53:03 PINEAPPLE postfix/qmgr[8957]: warning: private/smtp socket: malformed response
Mar 19 10:03:03 PINEAPPLE postfix/qmgr[8957]: warning: unexpected end-of-input from private/smtp socket while reading input attribute name
Mar 19 10:03:03 PINEAPPLE postfix/qmgr[8957]: warning: private/smtp socket: malformed response
Coda posta al momento dei log:
Codice: Seleziona tutto
root@PINEAPPLE:/var/log# postqueue -p
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
521774EE4 20522 Fri Mar 19 09:48:03 provami@132.it
(mail transport unavailable)
info@pineappleitaly.com
-- 20 Kbytes in 1 Request.
main.cf:
Codice: Seleziona tutto
root@PINEAPPLE:/etc/postfix# vim main.cf
See /usr/share/postfix/main.cf.dist for a commented, more complete version
# 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 (Ubuntu)
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
readme_directory = no
# 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 = no
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
myhostname = xvm-21-29.ghst.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
home_mailbox = Maildir/
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth-client
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = no
smtpd_sasl_auth_enable = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
master.cf
Codice: Seleziona tutto
root@PINEAPPLE:/etc/postfix# vim master.cf
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_tls_security_level=encrypt
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
# -o milter_macro_daemon_name=ORIGINATING
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtpd
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o smtp_fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
retry unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 1 scache
127.0.0.1:10025 inet n - n - - smtpd
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
mailman unix - n n - - pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}
output del comando postconf -n
Codice: Seleziona tutto
root@PINEAPPLE:/etc/postfix# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = localhost
myhostname = xvm-21-29.ghst.net
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_note_starttls_offer = yes
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_use_tls = no
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth-client
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /etc/ssl/certs/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = no
tls_random_source = dev:/dev/urandom
il reverse dns che troivate su myhost è il reverse dns del mio server ricavato con host e mi è stato indicato dall'assistenza del mio hoster come configurazione per postfix!
per il resto ho smanettato un po a rimuovere sasl e tls autenticazioni e simili , limitare a 127.0.0.0/8 la ricezione mail (deve prenderle solo da applicazioni che girano sul server) ... mi serve aiuto :P grazie mille