Bonjour,
Je viens a vous concernant un problème d’envoi et de reception de mail.
J’ai une adresse www@srv-home.fr ou la reception et l’envoi de mail fonctionne.
J’ai une autre adresse serveur@srv-home.fr ou n’y la reception et n’y l’envoi fonctionne.
Voilà un bout du mail.info avec le serveur@srv-home.fr :
Mar 19 17:06:33 srv-home postfix/smtpd[3849]: connect from localhost[127.0.0.1]
Mar 19 17:06:33 srv-home postfix/trivial-rewrite[3852]: warning: do not list domain srv-home.fr in BOTH mydestination and virtual_mailbox_domains
Mar 19 17:06:33 srv-home postfix/smtpd[3849]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.0 <serveur@srv-home.fr>: Sender address rejected: User unknown in local recipient table; from$
Mar 19 17:06:33 srv-home roundcube: Invalid response code received from server (550):
Mar 19 17:06:33 srv-home roundcube: SMTP Error: SMTP error: Failed to add recipient 'prohand20@gmail.com' in /usr/share/apache2/roundcubemail-0.5.1/program/steps/mail/func.inc on line 1491 (POST /$
Mar 19 17:06:33 srv-home postfix/smtpd[3849]: disconnect from localhost[127.0.0.1]
Voici l’envoi avec www@srv-home.fr
Mar 19 17:04:48 srv-home postfix/smtpd[3812]: connect from localhost[127.0.0.1]
Mar 19 17:04:48 srv-home postfix/trivial-rewrite[3815]: warning: do not list domain srv-home.fr in BOTH mydestination and virtual_mailbox_domains
Mar 19 17:04:48 srv-home postfix/smtpd[3812]: 12FB6148248: client=localhost[127.0.0.1], sasl_method=LOGIN, sasl_username=www@srv-home.fr
Mar 19 17:04:48 srv-home postfix/cleanup[3816]: 12FB6148248: message-id=<96cc2fc6900449af5469f72484cfb94b@srv-home.fr>
Mar 19 17:04:48 srv-home postfix/qmgr[3803]: 12FB6148248: from=<www@srv-home.fr>, size=513, nrcpt=1 (queue active)
Mar 19 17:04:48 srv-home roundcube: User www@srv-home.fr [192.168.0.4]; Message for prohand20@gmail.com; 250: 2.0.0 Ok: queued as 12FB6148248
Mar 19 17:04:48 srv-home postfix/smtpd[3812]: disconnect from localhost[127.0.0.1]
Mar 19 17:04:48 srv-home postfix/smtpd[3824]: connect from localhost[127.0.0.1]
Mar 19 17:04:48 srv-home postfix/trivial-rewrite[3815]: warning: do not list domain srv-home.fr in BOTH mydestination and virtual_mailbox_domains
Mar 19 17:04:48 srv-home postfix/smtpd[3824]: 6410B148249: client=localhost[127.0.0.1]
Mar 19 17:04:48 srv-home postfix/cleanup[3816]: 6410B148249: message-id=<96cc2fc6900449af5469f72484cfb94b@srv-home.fr>
Mar 19 17:04:48 srv-home postfix/qmgr[3803]: 6410B148249: from=<www@srv-home.fr>, size=1428, nrcpt=1 (queue active)
Mar 19 17:04:48 srv-home postfix/smtpd[3824]: disconnect from localhost[127.0.0.1]
Mar 19 17:04:48 srv-home amavis[2665]: (02665-04) Passed CLEAN, MYNETS/MYUSERS LOCAL [127.0.0.1] [127.0.0.1] <www@srv-home.fr> -> <prohand20@gmail.com>, Message-ID: <96cc2fc6900449af5469f72484cfb9$
Mar 19 17:04:48 srv-home postfix/smtp[3821]: 12FB6148248: to=<prohand20@gmail.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.42, delays=0.09/0.01/0.01/0.31, dsn=2.0.0, status=sent (250 2.0.0 Ok, $
Mar 19 17:04:48 srv-home postfix/qmgr[3803]: 12FB6148248: removed
Mar 19 17:04:50 srv-home postfix/smtp[3825]: 6410B148249: to=<prohand20@gmail.com>, relay=gmail-smtp-in.l.google.com[74.125.77.27]:25, delay=1.6, delays=0.02/0.01/0.27/1.3, dsn=2.0.0, status=sent $
Mar 19 17:04:50 srv-home postfix/qmgr[3803]: 6410B148249: removed
Voici le main.cf
[code]
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/iRedMail_CA.pem
smtpd_tls_key_file = /etc/ssl/private/iRedMail.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 = srv-home.fr
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
myorigin = srv-home.fr
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = /usr/lib/dovecot/deliver
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mydomain = srv-home.fr
inet_protocols = ipv4
mynetworks_style = subnet
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
delay_warning_time = 0h
policy_time_limit = 3600
maximal_queue_lifetime = 1d
bounce_queue_lifetime = 1d
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_$
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,permit_sasl_authenticated, check_helo_access pcre:/etc/postfix/helo_access.pcre
queue_run_delay = 300s
minimal_backoff_time = 300s
maximal_backoff_time = 4000s
enable_original_recipient = no
disable_vrfy_command = yes
home_mailbox = Maildir/
allow_min_user = no
message_size_limit = 15728640
virtual_minimum_uid = 1001
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
virtual_mailbox_base = /var/vmail
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_authenticated_header = no
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, permit_mynetworks, permi$
smtpd_tls_security_level = may
smtpd_enforce_tls = no
smtpd_tls_loglevel = 0
smtpd_tls_CAfile = /etc/ssl/certs/iRedMail_CA.pem
tls_random_source = dev:/dev/urandom
tls_daemon_random_source = dev:/dev/urandom
Uncomment the following line to enable policyd sender throttle.
#smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10032
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = ./dovecot-auth
content_filter = smtp-amavis:[127.0.0.1]:10024[/code]
J’ai suivi ce tutoriel pour l’installation :
admin6.fr/2010/02/serveur-ma … v-webmail/
Merci de votre aide.
