Amavisd-new postfix Woody Appel l'aide N2

2004-06-28 Par sujet GERHARD Daniel




Bonjour,

Je suis entrain de mettre en place un serveur mail sur Debian Woody.
Logiquement, j'ai fait une recherche sur le net, pour l'installation et
la configuration des paquets de scurisation...

J'ai donc choisi de scuriser postfix par les outils amavisd-new,
clamav-daemon et clamav-testfiles (en gros j'ai suivi votre doc au pied
et  la lettre..)

j'ai cependant quelques soucis:

Voil ce que je trouve en lisant /var/log/mail.err:
Jun 25 14:16:17 pctoto postfix/master[15375]: fatal: bind 127.0.0.1
port 10024: Address already in use
Jun 25 14:33:47 pctoto postfix/postfix-script: fatal: the Postfix mail
system is not running

Voil ce que j'ai rajout  la fin du fichier /etc/postfix/master.cf

smtp-amavis unix - - y - 2 smtpd
-o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o smtpd_helo_restrictions=
 -o smtpd_client_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8, 193.xxx.xxx.xxx/24

et ce que j'ai rajout au fichier /etc/postfix/main.cf: 


# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
setgid_group = postdrop

# appending .domain is the MUA's job.
append_dot_mydomain = no

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h

myhostname = pcxxx.toto.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = pcxxx.toto.fr
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
#@@
home_mailbox = Maildir/
#@@
content_filter = smtp-amavis:[127.0.0.1]:10024

Si j'envoie un mail de test je reoit le message suivant: 
[EMAIL PROTECTED]: host pcxxx.toto.fr[193.xxx.xxx.xxx] said: 554 
[EMAIL PROTECTED]: Relay access denied (in reply to RCPT TO command)



A mon humble avis j'ai du louper un coche ... pourriez-vous svp
m'clairer...

Je vous remercie




Re: Amavisd-new postfix Woody Appel à l'aide N°2

2004-06-28 Par sujet COMBES Julien, CETE Lyon/DI/ET/PAMELA

Bonjour,

GERHARD Daniel a écrit :
[...]
/etc/postfix/master.cf :

127.0.0.1:10025   inet  n   -   n   -   -   smtpd
-o content_filter=
-o local_recipient_maps=
-o smtpd_helo_restrictions=
-o smtpd_client_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o mynetworks=127.0.0.0/8, 193.xxx.xxx.xxx/24

et ce que j'ai rajouté au fichier /etc/postfix/main.cf:

[...]

mynetworks = 127.0.0.0/8

[...]
[EMAIL PROTECTED]: host pcxxx.toto.fr[193.xxx.xxx.xxx] said: 554 
[EMAIL PROTECTED]: Relay access denied (in reply to RCPT TO command)


J'inverserai les mynetworks de master.cf et de main.cf.
Soit dans le master.cf :
127.0.0.1:10025   inet  n   -   n   -   -   smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o smtpd_helo_restrictions=
 -o smtpd_client_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8

et dans le main.cf :
mynetworks=127.0.0.0/8, 193.xxx.xxx.xxx/24

A noter aussi (dans le doute) : un maque en /24 ne couvre que les 8 
derniers bits de l'adresse IP. Assurer vous que votre IP est bien dans 
le même réseau que 193.xxx.xxx.0/24.


Julien



Amavisd-new postfix Woody

2004-06-25 Par sujet GERHARD Daniel




Bonjour,

Je suis entrain de mettre en place un serveur mail sur Debian Woody.
Logiquement, j'ai fait une recherche sur le net, pour l'installation et
la configuration des paquets de scurisation...

J'ai donc choisi de scuriser postfix par les outils amavisd-new,
clamav-daemon et clamav-testfiles (en gros j'ai suivi votre doc au pied
et  la lettre..)

j'ai cependant quelques soucis:

Voil ce que je trouve en lisant /var/log/mail.err:
Jun 25 14:16:17 pctoto postfix/master[15375]: fatal: bind 127.0.0.1
port 10024: Address already in use
Jun 25 14:33:47 pctoto postfix/postfix-script: fatal: the Postfix mail
system is not running

Voil ce que j'ai rajout  la fin du fichier /etc/postfix/master.cf

smtp-amavis unix - - y - 2 smtpd
-o smtp_data_done_timeout=1200 -o disable_dns_lookups=yes

127.0.0.1:10025 inet n - n - - smtpd
 -o content_filter=
 -o local_recipient_maps=
 -o smtpd_helo_restrictions=
 -o smtpd_client_restrictions=
 -o smtpd_sender_restrictions=
 -o smtpd_recipient_restrictions=permit_mynetworks,reject
 -o mynetworks=127.0.0.0/8, 193.xxx.xxx.xxx/24

et ce que j'ai rajout au fichier /etc/postfix/main.cf: 


# see /usr/share/postfix/main.cf.dist for a commented, fuller
# version of this file.

# Do not change these directory settings - they are critical to Postfix
# operation.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
program_directory = /usr/lib/postfix
setgid_group = postdrop

# appending .domain is the MUA's job.
append_dot_mydomain = no

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# Uncomment the next line to generate delayed mail warnings
#delay_warning_time = 4h

myhostname = pcxxx.toto.fr
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = pcxxx.toto.fr
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command =
mailbox_size_limit = 0
recipient_delimiter = +
#@@
home_mailbox = Maildir/
#@@
content_filter = smtp-amavis:[127.0.0.1]:10024

Si j'envoie un mail de test je reoit le message suivant: 
[EMAIL PROTECTED]: host pcxxx.toto.fr[193.xxx.xxx.xxx] said: 554 
[EMAIL PROTECTED]: Relay access denied (in reply to RCPT TO command)





A mon humble avis j'ai du louper un coche ... pourriez-vous svp
m'clairer...

Je vous remercie