I installed a virtual mailserver one month ahaid and it worked beautifull. Now i removed al about spam and virus detection from it (amavisd-new/clamav/spamassassin, etc..) Restartd and surprise, the mails are going to /var/mail/$user, so NOT in /home/vmail/$mydomain/$user. Seems maildrop do not work in the /postfix/master.cf like this: maildrop unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/bin/maildrop /home/vmail/maildroprc ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} I checked and rechecked everything but couldn't find what happen exactly.
Checked sending a message with m-m@mydomain and it works. So could it be a forward problem from the mysql table ?
No, there are not one error or warning. Of course, the messages are delivered to /var/mail/$user. Her is part of a message header: From [email protected] Mon Oct 22 00:06:30 2007 Return-Path: <[email protected]> X-Original-To: serv@localhost Delivered-To: serv@localhost Received: from serv.laplaceverte.fr (localhost.localdomain [127.0.0.1]) by serv.laplaceverte.fr (Postfix) with ESMTP id D6E8827C9D for <serv@localhost>; Mon, 22 Oct 2007 00:06:29 +0200 (CEST) Received: from 127.0.0.1 by serv.laplaceverte.fr with POP3 (fetchmail-6.3.6) for <serv@localhost> (single-drop); Mon, 22 Oct 2007 00:06:29 +0200 (CEST) Received: from mwinf2116.orange.fr (mwinf2116.orange.fr) by mwinb0b06 (SMTP Server) with LMTP; Sun, 21 Oct 2007 21:00:52 +0200 And now when i send a message from serv.laplaceverte.fr : Oct 22 14:09:17 serv postfix/pickup[22244]: B0CAD27CA5: uid=500 from=<serv> Oct 22 14:09:17 serv postfix/cleanup[22788]: B0CAD27CA5: message-id=<[email protected]> Oct 22 14:09:17 serv postfix/qmgr[22245]: B0CAD27CA5: from=<[email protected]>, size=367, nrcpt=1 (queue active) Oct 22 14:09:19 serv postfix/pipe[22791]: B0CAD27CA5: to=<[email protected]>, relay=maildrop, delay=1.7, delays=0.56/0.11/ Oct 22 14:09:19 serv postfix/qmgr[22245]: B0CAD27CA5: removed And a log when a mail is fetched from my ISP: Oct 22 13:59:52 serv postfix/smtpd[22749]: 487ED27C9D: client=localhost.localdomain[127.0.0.1] Oct 22 13:59:52 serv postfix/cleanup[22755]: 487ED27C9D: message-id=<1193054095.4831.3.camel@localhost> Oct 22 13:59:52 serv postfix/cleanup[22755]: 487ED27C9D: resent-message-id=<SenkMB.A.B3F.r-IHHB@murphy> Oct 22 13:59:52 serv postfix/qmgr[22245]: 487ED27C9D: from=<[email protected]>, Oct 22 13:59:52 serv postfix/local[22756]: 487ED27C9D: to=<serv@localhost>, relay=local, delay=0.22, delays=0.14/0.06/0/0.03 Oct 22 13:59:52 serv postfix/qmgr[22245]: 487ED27C9D: removed My forwardings table: serv@localhost [email protected] There are now several day's i searched what can happen but can't find it.
And here is my 'netstat -tap' : tcp 0 0 localhost.localdo:mysql *:* LISTEN 22689/mysqld tcp 0 0 *:2127 *:* LISTEN 3746/rpc.statd tcp 0 0 localhost.locald:sunrpc *:* LISTEN 3267/portmap tcp 0 0 *:webmin *:* LISTEN 4123/perl tcp 0 0 *:auth *:* LISTEN 3757/inetd tcp 0 0 *:ftp *:* LISTEN 3852/vsftpd tcp 0 0 *:smtp *:* LISTEN 22239/master tcp6 0 0 *:imaps *:* LISTEN 6071/couriertcpd tcp6 0 0 *op3s *:* LISTEN 6098/couriertcpd tcp6 0 0 *op3 *:* LISTEN 6080/couriertcpd tcp6 0 0 *:imap2 *:* LISTEN 6054/couriertcpd tcp6 0 0 *:webcache *:* LISTEN 5623/apache2 tcp6 0 0 *:www *:* LISTEN 5623/apache2 tcp6 0 0 *:ssh *:* LISTEN 3848/sshd
Thanks for the reply Falko, finally i've reinstalled my /etc/postfile/main.cf exactly and no more as it has to be done on the howto. Now the To: in the log file is "serv@localhost.laplaceverte.fr" Don't know where it come from; but after added "[email protected] [email protected]" to my forwardings table, all goes where i have to get it And i added to main.cf: (for maildrop delevering) alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases mailbox_size_limit = 0 recipient_delimiter = + relayhost = [smtp.orange.fr] maildrop_destination_recipient_limit = 1 virtual_transport = maildrop