Pages : 1
#1 Le 05/10/2007, à 17:12
- zerros
[Résolu]serveur de mail avec maildrop ?!
Bonjour,
Il ya quelques temps j'avais réussi à faire une install postfix + courier-imap + spamassassin + amavis + clamav + MAILDROP !!
Il se trouve que le serveur a été amené à migrer suite à un crash disk. J'ai pu récupérer une certain nombre de chose mais pas tout.
Mon problème est que mon Maildrop ne fonctionne plus :'(. Voici le log des messages :
Oct 5 16:54:42 localhost postfix/pipe[6026]: fatal: get_service_attr: unknown username: postfix
Oct 5 16:54:42 localhost postfix/pipe[6027]: fatal: get_service_attr: unknown username: postfix
Oct 5 16:54:42 localhost postfix/pipe[6028]: fatal: get_service_attr: unknown username: postfix
Oct 5 16:54:42 localhost postfix/pipe[6030]: fatal: get_service_attr: unknown username: postfix
Oct 5 16:54:43 localhost postfix/pipe[6029]: fatal: get_service_attr: unknown username: postfix
Oct 5 16:54:43 localhost postfix/qmgr[6018]: warning: premature end-of-input on private/maildrop socket while reading input attribute name
Oct 5 16:54:43 localhost postfix/qmgr[6018]: warning: private/maildrop socket: malformed response
Oct 5 16:54:43 localhost postfix/qmgr[6018]: warning: transport maildrop failure -- see a previous warning/fatal/panic logfile record for the problem description
Oct 5 16:54:43 localhost postfix/master[6015]: warning: process /usr/lib/postfix/pipe pid 6024 exit status 1
Oct 5 16:54:43 localhost postfix/master[6015]: warning: /usr/lib/postfix/pipe: bad command startup -- throttling
Oct 5 16:54:43 localhost postfix/qmgr[6018]: DFBFF499B1: to=<user@test-domain.com>, relay=none, delay=1707, delays=1705/1.6/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
Oct 5 16:54:43 localhost postfix/master[6015]: warning: process /usr/lib/postfix/pipe pid 6025 exit status 1
Or il se trouve que sans maildrop tout marche niquel, et que le fameux user vmail existe :
vmail:x:5000:5000::/var/spool/vmail/:/bin/sh
dans mon main.cf :
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf,mysql:/etc/postfix/mysql-virtual_aliases_mailbox.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/spool/vmail/
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
maildrop_destination_recipient_limit=1
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "Desole, la boite email de l'utilisateur est pleine, essayez plus tard."
virtual_overquota_bounce = yes
fichier master.cf :
#
# 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 - - - - smtpd
#submission inet n - - - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -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 - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - - 300 1 oqmgr
tlsmgr unix - - - 1000? 1 tlsmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
trace unix - - - - 0 bounce
verify unix - - - - 1 verify
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - - - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
discard unix - - - - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - - - - lmtp
anvil unix - - - - 1 anvil
scache unix - - - - 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
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}
fichier mysql-transport.cf :
root@kara-server:/etc/postfix# more mysql-transport.cf
hosts = 127.0.0.1
user = postfix
password = postfix
dbname = postfix
select_field = destination
table = transport
where_field = domain
base transport :
CREATE TABLE IF NOT EXISTS `transport` (
`id` int(11) NOT NULL auto_increment,
`domain` varchar(128) NOT NULL default '',
`destination` varchar(128) NOT NULL default '',
PRIMARY KEY (`id`),
UNIQUE KEY `domain` (`domain`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;
J'espère que vous pourrez m'aider. Merci d'avance pour toute l'aide que vous pourrez m'apporter.
Dernière modification par zerros (Le 06/10/2007, à 09:25)
Hors ligne
#2 Le 06/10/2007, à 09:24
- zerros
Re : [Résolu]serveur de mail avec maildrop ?!
Bonjour,
Je me réponds. J'ai résolu le prob en recompilnt maildrop version 1.6.3
bonne journée.
Hors ligne
#3 Le 06/10/2007, à 11:02
- toniotonio
Re : [Résolu]serveur de mail avec maildrop ?!
c'est un peu vieux comme version, la derniere etant la 2.0.4
Tutoriaux Postfix sur www.starbridge.org/spip
Messagerie Dédiée, Relais Mail Antispam/Antivirus, Infogérance 24/7: http://www.eole-its.com
Hors ligne
Pages : 1