Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Fatal parameter Postfix

6 views
Skip to first unread message

NicoW

unread,
Dec 31, 2009, 7:21:04 AM12/31/09
to
Bonjour,

J'ai actuellement un gros soucis avec un serveur mail que j'essaye de
configurer avec Amavis et Clamav.

Aprés avoir résolu pas mal de soucis notamment avec qpopper, une
erreur fatal est apparue dans mes logs :

Nov 19 16:46:05 DebianMX postfix/smtpd[7828]: fatal: parameter
"smtpd_recipient_restrictions": specify at least one working instance
of: check_relay_domains,
reject_unauth_destination, reject, defer or defer_if_permit

Nov 19 16:46:06 DebianMX postfix/master[7731]: warning: process /usr/
lib/postfix/smtpd pid 7828 exit status 1

Nov 19 16:46:06 DebianMX postfix/master[7731]: warning: /usr/lib/
postfix/smtpd: bad command startup -- throttling

Impossible de trouver a quoi cela est dû.
J'ai renseigné dans "smtpd_recipient_restrictions" permit_mynetworks
et reject_unauth_destination du fichier main.cf et mis
permit_mynetworks, reject dans le master.cf

Si quelqu'un a une idée, sinon je pense tout reprendre de zéro :/

Message has been deleted

NicoW

unread,
Jan 2, 2010, 2:35:46 PM1/2/10
to
Comme demandé voici la sortie de postconf -n et mon fichier main.cf :

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 (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 = DebianMX.societe.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = DebianMX.societe.fr, localhost, localhost.localdomain,
localhost
relayhost = $mydomain
mynetworks = 127.0.0.0/8 192.168.0.0/24
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
content_filter = smtp-amavis:[127.0.0.1]:10024
smtpd_recipient_restrictions=permit_mynetworks,
reject_unauth_destination

POSTCONF -N :

DebianMX:/home/nico# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = DebianMX.societe.fr, localhost, localhost.localdomain,
localhost
myhostname = DebianMX.societe.fr
mynetworks = 127.0.0.0/8 192.168.0.0/24
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = $mydomain
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks,
reject_unauth_destination
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/
smtpd_scache

CONFIG DE AMAVIS DANS MASTER.CF :

#Ligne de parametre pour amavis

smtp-amavis unix - - n - 2 lmtp
-o lmtp_data_done_timeout=1200
-o lmtp_send_xforward_command=yes
-o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o receive_override_option=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restrictions_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks, reject
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000

0 new messages