daprod | Pour info voici mon main.cf
Code :
- myhostname = toto.xxxx.com
- mydomain = xxxx.com
- myorigin = $mydomain
- inet_interface = all
- mydestination = $myhostname
- mynetworks_style = subnet
- mynetworks = 127.0.0.0/8
- relay_domains =
- relayhost =
- alias_maps = hash:/etc/aliases
- home_mailbox = Maildir/
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- #smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access hash:/etc/postfix/recipient_access, reject_unauth_destination
- smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
- message_size_limit = 10240000
- virtual_mailbox_base = /home/vmail
- virtual_uid_maps = static:5000
- virtual_gid_maps = static:5000
- virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
- virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
- virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf, mysql:/etc/postfix/mysql_virtual_relocated_maps.cf
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_security_options = noanonymous
- smtpd_sasl_local_domain =
- broken_sasl_auth_clients = yes
- content_filter=smtp-amavis:[127.0.0.1]:10024
- receive_override_options = no_address_mappings
|
Mon master.cf
Code :
- smtp-amavis unix - - - - 2 smtp
- -o smtp_data_done_timeout=1200
- -o smtp_send_xforward_command=yes
- -o disable_dns_lookups=yes
- -o max_use=20
-
- 127.0.0.1:10025 inet n - - - - smtpd
- -o content_filter=
- -o local_recipient_maps=
- -o relay_recipient_maps=
- -o smtpd_restriction_classes=
- -o smtpd_delay_reject=no
- -o mynetworks=127.0.0.0/8
- -o smtpd_error_sleep_time=0
- -o smtpd_soft_error_limit=1001
- -o smtpd_hard_error_limit=1000
- -o smtpd_client_connection_count_limit=0
- -o smtpd_client_connection_rate_limit=0
- -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks
- -o smtpd_authorized_xforward_hosts=127.0.0.0/8
- -o smtpd_client_restrictions=permit_mynetworks,reject
- -o smtpd_helo_restrictions=
- -o smtpd_sender_restrictions=
- -o smtpd_recipient_restrictions=permit_mynetworks,reject
- -o stmpd_data_restrictions=reject_unauth_pipelining
- -o smtpd_end_of_data_restrictions=
|
et pour finir lorsque je met en place ta config, voici le message dans les logs :
Code :
- Sep 7 12:41:51 toto postfix/virtual[28177]: 653EDBD4040: to=<user1@xxxx.com>, relay=virtual, delay=0.06, delays=0.04/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "user1@xxxx.com" )
|
Etrange car ça fonctionne sans problème et à un moment hop il refuse, je vire ta conf est plus de problème !! |