

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: Postfix+maildrop+mysq...
![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [maildropl] Re: Postfix+maildrop+mysql some details please! | Actions... |
|---|---|---|
| From: | Alex Pita (newm...@softhome.net) | |
| Date: | Nov 9, 2002 7:09:40 am | |
| List: | net.sourceforge.lists.courier-maildrop | |
Hi hzqbbc,
Many thanks for your reply. I've made some little changes in postfix master.cf and main.cf. Now i receive the next messages:
In main.cf i commented out the line:
#fallback_transport = maildrop
In master.cf i've changed the line:
flags=Rhu user=alex argv=/var/tmp/aaa/bin/maildrop -d ${recipient}
here is a problem... [alex@dinu alex]$ cat maildr.alx | /var/tmp/aaa/bin/maildrop -d "ti...@test.ro" /var/tmp/aaa/bin/maildrop: Invalid user specified. [alex@dinu alex]$
Also if i use kmail to send a message to ti...@test.ro , and i can read in syslog:
Nov 9 16:02:26 dinu postfix/qmgr[3298]: 3650B28922: from=<al...@test.ro> , size=549, nrcpt=1 (queue active) Nov 9 16:02:27 dinu maildrop[3315]: Invalid user specified. Nov 9 16:02:28 dinu postfix/pipe[3314]: 3650B28922: to=<ti...@test.ro> , relay=maildrop, delay=1, status=deferred (temporary failure. Command output: /var/tmp/aaa/bin/maildrop: Invalid user specified. )
This messages are queued.
It seems like when no mysql query is done for this jobs! I tryed to use sendmail -q whatching to my mysqld.log. No queryes to my maildb database, no errors, nothing when i run this command!
So, i suppose that maildrop can't find the config file. I've compilled as i said in my first email with ./configure --prefix=/var/tmp/aaa/ --with-mysqlconfig=/var/tmp/aaa/ ....and few other options. I couldn't used trusted uid option and sendmail path option.
and [root@dinu Maildir]# ls -l /var/tmp/aaa/ total 24 drwxrwxr-x 2 alex alex 4096 nov 8 15:45 bin drwxrwxr-x 2 alex alex 4096 nov 8 15:45 include drwxrwxr-x 2 alex alex 4096 nov 8 15:45 lib -rw-r--r-- 1 alex alex 3012 nov 8 15:58 maildropmysql.config drwxrwxr-x 7 alex alex 4096 nov 8 15:45 man drwxrwxr-x 3 alex alex 4096 nov 8 15:45 share [root@dinu Maildir]#
This is not the correct path for maildropmysql.config file? What can be wrong now?
The posconf -n will produce the following output:
command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/local/man maximal_queue_lifetime = 1d message_size_limit = 5242880 mydestination = localhost.localdomain, localhost.$mydomain, $mydomain, $myhostname, $transport_maps mydomain = test.ro myhostname = ns1.test.ro mynetworks = 192.168.0.0/24, 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/bin/newaliases notify_classes = resource,software,2bounce queue_directory = /var/spool/postfix readme_directory = no sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_helo_required = yes smtpd_recipient_restrictions = permit_mynetworks, check_relay_domains transport_maps = mysql:/etc/postfix/transport.cf virtual_gid_maps = mysql:/etc/postfix/gids.cf virtual_mailbox_base = /home/mailusers virtual_mailbox_maps = mysql:/etc/postfix/mysql_virt.cf virtual_maps = mysql:/etc/postfix/virtual.cf virtual_uid_maps = mysql:/etc/postfix/uids.cf
Alex
hzqbbc wrote:
It seems a postfix issue not sqwebmail or maildrop ...perhaps you post your question to postfix-user list instead of this list.
btw: As my opinion, you don't set any transport to handle your message (perhaps you want to use maildrop to handle them but something wrong with your postfix configure..)properly...
how about run postconf -n and show me the result in detail ??
Alex Pita writes:
Hello maildrop experts.
I have a working postfix+mysql+courier-imap(pop3 and imap)+sqwebmail. Just i want to add maildrop capabilities to my postfix server. Acording to the docs, i compilled maildrop with mysql support and after that i configured postfix to use it.
1. ./configure --prefix=/var/tmp/aaa/ --without-db --enable-maildrop-uid=postfix --enable-maildrop-gid=postfix --enable-tempdir=tmp --enable-syslog=1 --enable-maildropmysql --with-mysqlconfig=/var/tmp/aaa/ --enable-maildirquota --with-devel --without-userdb --without-userdbtmpdir
2. i added to my /etc/postfix/main.cf the following line ### Maildrop support ### fallback_transport = maildrop Is this correct or is necessary to indicate the full path to the maildrop binary? fallback_transport = /var/tmp/aaa/bin/maildrop
3. I edited /etc/postfix/master.cf and added: ###support for maildrop### maildrop unix - n n - - pi pe flags=R user=postfix argv=/var/tmp/aaa/bin/maildrop -d ${recipient}
4. I've configured /var/tmp/aaa/maildropmysql.config acording to my mysql settings
5. I've changed in mysql transport table the field transport as you see below:
#my old working table without maildrop capabilities: +---------+-----------+ | domain | transport | +---------+-----------+ | test.ro | virtual: | | fifi.ro | virtual: | +---------+-----------+
#my new table with maildrop capabilities: +---------+-----------+ | domain | transport | +---------+-----------+ | test.ro | maildrop: | | fifi.ro | virtual: | +---------+-----------+
6. When i tryed to send and email, i saw in my syslog file the following messages:
Nov 9 13:35:25 dinu postfix/master[2243]: warning: process /usr/libexec/postfix/pipe pid 2315 exit status 1 Nov 9 13:35:25 dinu postfix/master[2243]: warning: /usr/libexec/postfix/pipe: bad command startup -- throttling Nov 9 13:35:25 dinu postfix/master[2243]: warning: process /usr/libexec/postfix/pipe pid 2317 exit status 1 Nov 9 13:35:26 dinu postfix/qmgr[2310]: warning: premature end-of-input on private/maildrop socket while reading input attribute name Nov 9 13:35:26 dinu postfix/qmgr[2310]: warning: private/maildrop socket: malformed response Nov 9 13:35:26 dinu postfix/qmgr[2310]: warning: transport maildrop failure -- see a previous warning/fatal/panic logfile record for the problem description Nov 9 13:35:26 dinu postfix/qmgr[2310]: 65CD928924: from=<ro...@test.ro> , size=391, nrcpt=1 (queue active) Nov 9 13:35:27 dinu postfix/qmgr[2310]: 65CD928924: to=<mi...@test.ro> , relay=none, delay=6445, status=deferred (unknown mail transport error)
7. If i change back from maildrop: to virtual:, this message disapear and the smtp deliver messages to the correct mailbox destination! Now the first question: Is this enough to setup maildrop? Is correct what i've done till here? How can i test if maildrop is working?
8. A strange situation is happen now, if i use soft-quota. When an email is sent to the mailbox, no size count is writted in maildirsize file. When a user download (via pop3) the email, the maildirsize file COUNT DOWN the message!!!! So, in this way, soft quota is not working! It look like the distribution mail agent, can't write in maildirsize file, or ingnore it! See below an example: [root@dinu root]# cat /home/mailusers/test.ro/titi/Maildir/maildirsize 1800000S -864433 -3 -585 -1 [root@dinu root]# The permission are ok: [root@dinu root]# ls -l /home/mailusers/test.ro/titi/Maildir/maildirsize -rw------- 1 postfix postfix 37 nov 8 17:17 /home/mailusers/test.ro/ titi/Maildir/maildirsize [root@dinu root]#
Second question: What can i do to activate the count up feature?
Any ideas?
Regards, Alex
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
_______________________________________________ Courier-maildrop mailing list Cour...@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/courier-maildrop
--
Best regards
"hzqbbc"<hzq...@hzqbbc.com>
------------------------------------------------- China Telecom Corporation, gz subcompany. office: 020-38810003 home: 020-82296017
------------------------------------------ Power by LDAPmailer - by hzq...@hzqbbc.com Commerical support - mail me or visit: http://devel.hzqbbc.com for more detail :)
------------------------------------------







