Saluts,
Installer.
postfix: 2.8.3-1
dovecot-2.0.13
J’ai résolu x soucis jusqu’à maintenant, mais là, ça coince.
x lectures, mais …
Test local et gmail ci plus bas. Échec!
En résumer.
Voilà, le sujet est lancé …
Pour commencer : main.cf, master.cf
main.cf
root@Debian-pc-1:/home/pc-1-loreleil#
# cat /etc/postfix/main.cf
#######################################################################################################
### modifier le 09/08/2011 à 06h23 ps: double dièse (##) commenter par moi. simple dièse (#) commenter d'origine > tutos > voir > ### mes_petits_papiers
#######################################################################################################
# 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 (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
##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=yes
##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 = Debian-pc-1
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = $mydomain
##mydestination = Debian-pc-1.home, localhost.home, , localhost
mydestination = $myhostname, localhost.$mydomain, localhost
relayhost = [smtp.gmail.com]:587
##mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 51200000
recipient_delimiter = +
home_mailbox = Maildir/
notify_classes = 2bounce, bounce, delay, policy, protocol, resource, software
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf
relay_recipient_maps = proxy:mysql:/etc/postfix/mysql_relay_recipients_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_catchall_maps.cf
virtual_gid_maps = static:20001
virtual_mailbox_base = /home/virtual
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf,proxy:mysql:/etc/postfix/mysql_virtual_alias_domain_mailbox_maps.cf
virtual_minimum_uid = 20001
virtual_uid_maps = static:20001
transport_maps = proxy:mysql:/etc/postfix/mysql_transport.cf,proxy:mysql:/etc/postfix/mysql_transport2.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $smtpd_recipient_restrictions $smtpd_sender_login_maps $has_our_domain_as_sender
message_size_limit = 50240000
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination,permit
smtpd_data_restrictions = reject_unauth_pipelining,permit
smtp_tls_CAfile = /etc/postfix/tls/cacert.pem
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_tls_session_cache
smtpd_tls_security_level = may
smtpd_tls_auth_only = yes
smtpd_tls_key_file = /etc/postfix/tls/pc-1-loreleil-key.pem
smtpd_tls_cert_file = /etc/postfix/tls/pc-1-loreleil-cert.pem
smtpd_tls_CAfile = /etc/postfix/tls/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_tls_session_cache
tls_random_source = dev:/dev/urandom
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
#
#inet_interfaces = all
#inet_protocols = ipv4
root@Debian-pc-1:/home/pc-1-loreleil#
master.cf
root@Debian-pc-1:/home/pc-1-loreleil# cat /etc/postfix/master.cf
######################################################################################################################
#### modifier le 09/08/2011 à 18h00 ps: deux dièses (##) > j'ai commenter. un dièse (#) > c'est commenter d'origine. > tutos > ### voir > mes_petits_papiers.
######################################################################################################################
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
#smtp inet n - n - 1 postscreen
#smtpd pass - - n - - smtpd
#dnsblog unix - - n - 0 dnsblog
#tlsproxy unix - - n - 0 tlsproxy
#submission inet n - n - - smtpd
587 inet n - n - - smtpd
-o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_etrn_restrictions=reject
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - - - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#628 inet n - - - - qmqpd
pickup fifo n - n 60 1 pickup
-o receive_override_options=no_header_body_checks
-o content_filter=
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
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
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
retry 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
#
# #=================================================#===================
# 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
dovecot unix - n n - - pipe
flags=DRhu user=vmail: argv=/usr/lib/dovecot/deliver -f ${sender} -d ${user}@${nexthop} -a ${recipient}
# 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}
root@Debian-pc-1:/home/pc-1-loreleil#
Test local.
root@Debian-pc-1:/home/pc-1-loreleil# mail postfix@Debian-pc-1.home
Subject: TEST POSTFIX DOVECOT
3ème test dovecot postfix
bla bla ...
.
Cc:
root@Debian-pc-1:/home/pc-1-loreleil#
cat /var/log/mail.warn
Aug 10 12:47:22 Debian-pc-1 postfix/bounce[6328]: warning: 83E2623CA: undeliverable postmaster notification discarded
Aug 10 12:47:22 Debian-pc-1 postfix/bounce[6328]: warning: ECFFD23CE: undeliverable postmaster notification discarded
cat /var/log/mail.info
Aug 10 12:47:20 Debian-pc-1 postfix/pickup[3752]: F2D0023C4: uid=0 from=<root>
Aug 10 12:47:21 Debian-pc-1 postfix/cleanup[6324]: F2D0023C4: message-id=<20110810104720.F2D0023C4@Debian-pc-1>
Aug 10 12:47:21 Debian-pc-1 postfix/qmgr[3753]: F2D0023C4: from=<root@localdomain>, size=339, nrcpt=1 (queue active)
Aug 10 12:47:21 Debian-pc-1 postfix/smtp[6327]: F2D0023C4: to=<postfix@Debian-pc-1.home>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.52, delays=0.1/0.02/0.37/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 c58sm508175wed.8 (in reply to MAIL FROM command))
Aug 10 12:47:21 Debian-pc-1 postfix/cleanup[6324]: 813DE23C8: message-id=<20110810104721.813DE23C8@Debian-pc-1>
Aug 10 12:47:21 Debian-pc-1 postfix/qmgr[3753]: 813DE23C8: from=<>, size=2388, nrcpt=1 (queue active)
Aug 10 12:47:21 Debian-pc-1 postfix/bounce[6328]: F2D0023C4: sender non-delivery notification: 813DE23C8
Aug 10 12:47:21 Debian-pc-1 postfix/cleanup[6324]: 83E2623CA: message-id=<20110810104721.83E2623CA@Debian-pc-1>
Aug 10 12:47:21 Debian-pc-1 postfix/qmgr[3753]: 83E2623CA: from=<double-bounce@Debian-pc-1>, size=1977, nrcpt=1 (queue active)
Aug 10 12:47:21 Debian-pc-1 postfix/bounce[6328]: F2D0023C4: postmaster non-delivery notification: 83E2623CA
Aug 10 12:47:21 Debian-pc-1 postfix/qmgr[3753]: F2D0023C4: removed
Aug 10 12:47:21 Debian-pc-1 postfix/smtp[6327]: 813DE23C8: to=<root@localdomain>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.37, delays=0.01/0/0.32/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 em16sm643576wbb.50 (in reply to MAIL FROM command))
Aug 10 12:47:21 Debian-pc-1 postfix/smtp[6329]: 83E2623CA: to=<postmaster@localdomain>, orig_to=<postmaster>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.39, delays=0.01/0.02/0.32/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 el9sm642203wbb.58 (in reply to MAIL FROM command))
Aug 10 12:47:21 Debian-pc-1 postfix/cleanup[6324]: ECFFD23CE: message-id=<20110810104721.ECFFD23CE@Debian-pc-1>
Aug 10 12:47:21 Debian-pc-1 postfix/qmgr[3753]: ECFFD23CE: from=<double-bounce@Debian-pc-1>, size=4062, nrcpt=1 (queue active)
Aug 10 12:47:21 Debian-pc-1 postfix/bounce[6328]: 813DE23C8: postmaster non-delivery notification: ECFFD23CE
Aug 10 12:47:21 Debian-pc-1 postfix/qmgr[3753]: 813DE23C8: removed
Aug 10 12:47:22 Debian-pc-1 postfix/bounce[6328]: warning: 83E2623CA: undeliverable postmaster notification discarded
Aug 10 12:47:22 Debian-pc-1 postfix/qmgr[3753]: 83E2623CA: removed
Aug 10 12:47:22 Debian-pc-1 postfix/smtp[6327]: ECFFD23CE: to=<postmaster@localdomain>, orig_to=<postmaster>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.38, delays=0/0/0.34/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 fn12sm645683wbb.38 (in reply to MAIL FROM command))
Aug 10 12:47:22 Debian-pc-1 postfix/bounce[6328]: warning: ECFFD23CE: undeliverable postmaster notification discarded
Aug 10 12:47:22 Debian-pc-1 postfix/qmgr[3753]: ECFFD23CE: removed
Aug 10 12:50:43 Debian-pc-1 postfix/scache[6330]: statistics: start interval Aug 10 12:47:22
Aug 10 12:50:43 Debian-pc-1 postfix/scache[6330]: statistics: domain lookup hits=0 miss=1 success=0%
Aug 10 12:50:43 Debian-pc-1 postfix/scache[6330]: statistics: address lookup hits=0 miss=1 success=0%
Cette adresse ne m’apporte rien de plus : mail.google.com/support/bin/answ … swer=14257
Je dirais même, Rien à voir !
Test gmail.com.
root@Debian-pc-1:/home/pc-1-loreleil# mail Mon_Adresse@gmail.com
Subject: Test réelle postfix/dovecot le 10/08/2011 à 14h30
test envoi mail vers gmail.com
Échec ? Succès ?
Va savoir !
.
Cc: Mon_Adresse@gmail.com
root@Debian-pc-1:/home/pc-1-loreleil#
cat /var/log/mail.warn
Aug 10 14:32:31 Debian-pc-1 postfix/bounce[9405]: warning: 45C4223CA: undeliverable postmaster notification discarded
Aug 10 14:32:32 Debian-pc-1 postfix/bounce[9405]: warning: AE9C523CE: undeliverable postmaster notification discarded
cat /var/log/mail.info
Aug 10 14:32:30 Debian-pc-1 postfix/pickup[6581]: AFF5423C4: uid=0 from=<root>
Aug 10 14:32:30 Debian-pc-1 postfix/cleanup[9401]: AFF5423C4: message-id=<20110810123230.AFF5423C4@Debian-pc-1>
Aug 10 14:32:30 Debian-pc-1 postfix/qmgr[3753]: AFF5423C4: from=<root@localdomain>, size=392, nrcpt=1 (queue active)
Aug 10 14:32:31 Debian-pc-1 postfix/smtp[9404]: AFF5423C4: to=<Mon_Adresse@gmail.com>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.5, delays=0.08/0.06/0.33/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 el9sm712575wbb.58 (in reply to MAIL FROM command))
Aug 10 14:32:31 Debian-pc-1 postfix/cleanup[9401]: 4313023C8: message-id=<20110810123231.4313023C8@Debian-pc-1>
Aug 10 14:32:31 Debian-pc-1 postfix/qmgr[3753]: 4313023C8: from=<>, size=2439, nrcpt=1 (queue active)
Aug 10 14:32:31 Debian-pc-1 postfix/bounce[9405]: AFF5423C4: sender non-delivery notification: 4313023C8
Aug 10 14:32:31 Debian-pc-1 postfix/cleanup[9401]: 45C4223CA: message-id=<20110810123231.45C4223CA@Debian-pc-1>
Aug 10 14:32:31 Debian-pc-1 postfix/qmgr[3753]: 45C4223CA: from=<double-bounce@Debian-pc-1>, size=2004, nrcpt=1 (queue active)
Aug 10 14:32:31 Debian-pc-1 postfix/bounce[9405]: AFF5423C4: postmaster non-delivery notification: 45C4223CA
Aug 10 14:32:31 Debian-pc-1 postfix/qmgr[3753]: AFF5423C4: removed
Aug 10 14:32:31 Debian-pc-1 postfix/smtp[9404]: 4313023C8: to=<root@localdomain>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.37, delays=0.01/0/0.32/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 8sm716841wbx.34 (in reply to MAIL FROM command))
Aug 10 14:32:31 Debian-pc-1 postfix/smtp[9406]: 45C4223CA: to=<postmaster@localdomain>, orig_to=<postmaster>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.38, delays=0/0.01/0.33/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 em16sm709738wbb.67 (in reply to MAIL FROM command))
Aug 10 14:32:31 Debian-pc-1 postfix/cleanup[9401]: AE9C523CE: message-id=<20110810123231.AE9C523CE@Debian-pc-1>
Aug 10 14:32:31 Debian-pc-1 postfix/qmgr[3753]: AE9C523CE: from=<double-bounce@Debian-pc-1>, size=4107, nrcpt=1 (queue active)
Aug 10 14:32:31 Debian-pc-1 postfix/bounce[9405]: 4313023C8: postmaster non-delivery notification: AE9C523CE
Aug 10 14:32:31 Debian-pc-1 postfix/qmgr[3753]: 4313023C8: removed
Aug 10 14:32:31 Debian-pc-1 postfix/bounce[9405]: warning: 45C4223CA: undeliverable postmaster notification discarded
Aug 10 14:32:31 Debian-pc-1 postfix/qmgr[3753]: 45C4223CA: removed
Aug 10 14:32:32 Debian-pc-1 postfix/smtp[9404]: AE9C523CE: to=<postmaster@localdomain>, orig_to=<postmaster>, relay=smtp.gmail.com[209.85.227.109]:587, delay=0.37, delays=0.01/0/0.33/0.04, dsn=5.5.1, status=bounced (host smtp.gmail.com[209.85.227.109] said: 530-5.5.1 Authentication Required. Learn more at 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 fg5sm718759wbb.23 (in reply to MAIL FROM command))
Aug 10 14:32:32 Debian-pc-1 postfix/bounce[9405]: warning: AE9C523CE: undeliverable postmaster notification discarded
Aug 10 14:32:32 Debian-pc-1 postfix/qmgr[3753]: AE9C523CE: removed
Aug 10 14:35:51 Debian-pc-1 postfix/scache[9407]: statistics: start interval Aug 10 14:32:31
Aug 10 14:35:51 Debian-pc-1 postfix/scache[9407]: statistics: domain lookup hits=0 miss=1 success=0%
Aug 10 14:35:51 Debian-pc-1 postfix/scache[9407]: statistics: address lookup hits=0 miss=1 success=0%
Une idée pour solutionner ??
Merci à toi …
Je t’en serre cinq …