Virtual Users And Domains With Postfix, Courier And MySQL (Debian Etch)

Discussion in 'HOWTO-Related Questions' started by kdclaver, Jul 18, 2007.

  1. kdclaver

    kdclaver New Member

    I want to congratulate you this best howto. Very good !!!!
    I have some questions to ask :
    1°- How must I configure the MUA ? What are the parameters for the SMTP Server and for the IMAP/POP3 server ?

    2- Have you try to install on this solution Postfixadmin ? If yes, what are the changes I must do ?

    3- Which webmail do you recommand to install on this server ?

    Thanks a lot for this good howto
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You can use any IP address or FQDN that's pointing to your mail server.

    This setup doesn't work with Postfixadmin.

    I'd try Squirrelmail.
     
  3. mcg

    mcg New Member

    squirrelmail login fails, Connection dropped by IMAP server

    hi!

    i saw this thread and i did not want to open a new thread. i followed this tutorial step by step installing Debian 4.0, but when i try login with squirrelmail i face with this.

    ERROR: Connection dropped by IMAP server.

    and i check the /var/log/mail.log there is

    Jul 23 14:58:07 server1.example.com imapd: Connection, ip=[::ffff:127.0.0.1]
    Jul 23 14:58:07 server1.example.com imapd: chdir sales/sales/: No such file or directory

    could you help me please?

    thanks a lot,
    mcg
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Please send an email first to a new account before you try to fetch mails from it. The necessary directories are created automatically when the first mail arrives.
     
  5. mcg

    mcg New Member

    i tried but the result is same. i have created in dir /home/vmail/example.com/sales/Maildir and in Maildir cur, new, tmp with permissions
    sales

    this is from the mail.log

    Jul 24 16:38:20 server1 imapd: DISCONNECTED, [email protected], ip=[::ffff:127.0.0.1], headers=0, body=0, rcvd=21, sent=57, time=0
    Jul 24 16:38:20 server1 imapd: Connection, ip=[::ffff:127.0.0.1]
    Jul 24 16:38:20 server1 imapd: LOGIN, [email protected], ip=[::ffff:127.0.0.1], protocol=IMAP

    thanks for helping!

    regards,
    mcg
     
    Last edited: Jul 24, 2007
  6. mcg

    mcg New Member

    hi!
    now i am able to login with squirrelmail, but i see no mail in inbox even if i sent many mails to the test user and when send with the test user to the others, they dont receive the mails. what else i can do!

    regards,
    mcg
     
  7. falko

    falko Super Moderator ISPConfig Developer

    Did you create these directories manually? They must be created by the system.
     
  8. mcg

    mcg New Member

    i created with maildirmake, like maildirmake /home/vmail/domain/foo. after this all started to work. users are able to send mail but they don't receive.

    regards,
    mcg
     
  9. JeanLuc

    JeanLuc New Member

    Some Problems

    Hi,

    I've some problems during the installation,

    first I cannot install the postfix-tls package because I have postifx 2.4.3. I think that should not be a problem because tls is integrated in Version 2.4.3 (?).

    During the patch of postfix I use that patch: http://vda.cvs.sourceforge.net/*checkout*/vda/VDA/postfix-2.4.3-vda-ng.patch?revision=1.1, I think that this is quite good but I can't make the new package because I can't install libpq-dev. The error message during creating the new package:

    dpkg-checkbuilddeps: Unmet build dependencies: libpq-dev
    dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.

    When I try to install libpq-dev, apt-get want's to remove postfix-dev, I think there are some version problems.

    When I try to make the package without postfix-dev I get that error:

    [...]
    find . -type s -print | xargs rm -f
    find . -type d -print | xargs chmod 755
    find . -type f -print | xargs chmod a+r
    make: Leaving directory `/usr/src/postfix-2.4.3'
    make[1]: Leaving directory `/usr/src/postfix-2.4.3'
    dpatch deapply-all
    /usr/bin/dpatch: line 8: set: pipefail: invalid option name
    make: *** [unpatch] Fehler 1

    So, I hope you can help me.

    Maye I can use postfix without the quota patch, I think then I don't need:
    postconf -e 'virtual_create_maildirsize = yes'
    postconf -e 'virtual_mailbox_extended = yes'
    postconf -e 'virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf'
    postconf -e 'virtual_mailbox_limit_override = yes'
    postconf -e 'virtual_maildir_limit_message = "The user you are trying to reach is over quota."'
    postconf -e 'virtual_overquota_bounce = yes'
    the $virtual_mailbox_limit_maps in proxy_read_maps and the sql table. Would that be right?

    But the quota patch would be very nice, so I hope somebody have a solution for creating the package.

    Thx
    JeanLuc
     
    Last edited: Jul 28, 2007
  10. falko

    falko Super Moderator ISPConfig Developer

    Which distribution do you use? Debian Sarge or Etch?
    What's in /etc/apt/sources.list?
     
  11. JeanLuc

    JeanLuc New Member

    hi,

    i found the problem. Because i use a new apache2, mysql server 5.1 and php5 I needed an few new packages. With them I must use the new postfix version, but I works very fine now without quota.

    I think i'm going to check the quota with maildrop, this should'nt be a big problem. (If you know a good howto for maildrop with virtual users it would be great ;) )

    JeanLuc
     
  12. samo

    samo New Member

    openwebmail

    Hi,

    I have followed the tutorial and everything worked perfectly. Thanks a lot for sharing it. I was wondering if openWebmail could work with this setup. Could you add a few steps to your tutorial to explain the openWebmail setup ?
    Thanks again

    Samo
     
  13. falko

    falko Super Moderator ISPConfig Developer

    I've never used openwebmail until now... :(
     
  14. Rescue9

    Rescue9 Member

    First let me say that this is a wonderful tutorial.

    I do have a few problems though. I have a couple of users who have extensive .procmailrc files. These are local users, so I'm not opposed to having the mail delivered to local accounts. Can I use the transport table with the domain "mylocaldomain" and transport ":" and have the mails sent to a local mailbox then run .procmailrc?

    Is there any other way to have a virtual user with a .procmailrc? BTW, I don't want to sue ISPConfig.

    Thanks!
     
  15. falko

    falko Super Moderator ISPConfig Developer

    Yes, that should work (but I'd use localhost instead of mylocaldomain).
     
  16. drone12

    drone12 New Member

    I follow this tutorial here on Ubuntu-Server 7.04
    http://www.howtoforge.com/virtual_postfix_mysql_quota_courier_ubuntu_edgy



    Incoming Mail Errors
    Code:
    Aug  8 22:53:16 x pop3d-ssl: Connection, ip=[::ffff:x]
    Aug  8 22:53:16 x pop3d-ssl: chdir x.com/x/: No such file or directory
    
    
    Aug  8 23:27:16 x imapd: Connection, ip=[::ffff:x]
    Aug  8 23:27:16 x imapd: chdir x.com/x/: No such file or directory





    Ok What happens when I send a e-mail from my mail server to the mail server in question, while in a tail -f
    Code:
    Aug  8 23:38:16 x imapd: chdir localserver.com/x/: No such file or directory
    Aug  8 23:38:28 x postfix/smtpd[4797]: connect from c-x-name[x2ip]
    Aug  8 23:38:28 x postfix/trivial-rewrite[4800]: warning: do not list domain localserver.com in BOTH mydestination and virtual_mailbox_domains
    Aug  8 23:38:28 x postfix/smtpd[4797]: AC0AB3E82EC: client=c-x-name[x2ip]
    Aug  8 23:38:28 x postfix/cleanup[4801]: AC0AB3E82EC: message-id=<[email protected]>
    Aug  8 23:38:28 x postfix/qmgr[4334]: AC0AB3E82EC: from=<[email protected]>, size=786, nrcpt=1 (queue active)
    Aug  8 23:38:28 x postfix/smtpd[4797]: disconnect from c-xname[x]
    Aug  8 23:38:40 x postfix/smtpd[4807]: connect from localhost[127.0.0.1]
    Aug  8 23:38:40 x postfix/trivial-rewrite[4800]: warning: do not list domain localserver.com in BOTH mydestination and virtual_mailbox_domains
    Aug  8 23:38:40 x postfix/smtpd[4807]: 0FC5B3E82F1: client=localhost[127.0.0.1]
    Aug  8 23:38:40 x postfix/cleanup[4801]: 0FC5B3E82F1: message-id=<[email protected]>
    Aug  8 23:38:40 x postfix/qmgr[4334]: 0FC5B3E82F1: from=<[email protected]>, size=1251, nrcpt=1 (queue active)
    Aug  8 23:38:40 x postfix/smtpd[4807]: disconnect from localhost[127.0.0.1]
    Aug  8 23:38:40 x amavis[4069]: (04069-03) Passed CLEAN, [x] [x] <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: kclfjmteFtya, Hits: 1.309, queued_as: 0FC5B3E82F1, 11319 ms
    Aug  8 23:38:40 x postfix/trivial-rewrite[4800]: warning: do not list domain localserver.com in BOTH mydestination and virtual_mailbox_domains
    Aug  8 23:38:40 x postfix/smtp[4803]: AC0AB3E82EC: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=11, delays=0.11/0.01/0/11, dsn=2.6.0, status=sent (250 2.6.0 Ok, id=04069-03, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 0FC5B3E82F1)
    Aug  8 23:38:40 x postfix/qmgr[4334]: AC0AB3E82EC: removed
    Aug  8 23:38:40 x postfix/local[4808]: 0FC5B3E82F1: to=<[email protected]>, relay=local, delay=0.1, delays=0.05/0.02/0/0.03, dsn=5.1.1, status=bounced (unknown user: "x")
    Aug  8 23:38:40 x postfix/cleanup[4801]: 297C03E82EC: message-id=<[email protected]>
    Aug  8 23:38:40 x postfix/qmgr[4334]: 297C03E82EC: from=<>, size=3008, nrcpt=1 (queue active)
    Aug  8 23:38:40 x postfix/bounce[4810]: 0FC5B3E82F1: sender non-delivery notification: 297C03E82EC
    Aug  8 23:38:40 x postfix/qmgr[4334]: 0FC5B3E82F1: removed
    Aug  8 23:38:40 x postfix/smtp[4811]: 297C03E82EC: to=<[email protected]>, relay=x.com[24.98.47.222]:25, delay=0.66, delays=0.01/0.01/0.37/0.27, dsn=2.0.0, status=sent (250 Ok: queued as 665C121326D0)
    Aug  8 23:38:40 x postfix/qmgr[4334]: 297C03E82EC: removed
    Aug  8 23:39:16 x imapd: Connection, ip=[::ffff:x]
    Aug  8 23:39:16 x imapd: chdir localserver.com/x/: No such file or directory
    Aug  8 23:39:16 x imapd: Connection, ip=[::ffff:x]
    Aug  8 23:39:16 x imapd: chdir localserver.com/x/: No such file or directory
    Aug  8 23:39:16 x imapd: Connection, ip=[::ffff:x]
    Aug  8 23:39:16 x imapd: chdir localserver.com/x/: No such file or directory
    

    As far as I know.. I've done the setup 99% accurate besides the fact of me not putting the quota related stuff in.

    If I'm not mistaken aren't there mail directories supposed to be created when you send a e-mail to them? I don't know why they aren't being created.




    OK Never mind.. the error:
    Code:
    Aug  8 23:38:40 x postfix/trivial-rewrite[4800]: warning: do not list domain localserver.com in BOTH mydestination and virtual_mailbox_domains
    Gave me enough hint to edit postfix/main.cf and remove the mailing domain from there.. and then it worked...

    Maybe I'll leave this here in case someone else gets this error?


    or you can just delete this message
     
    Last edited: Aug 9, 2007
  17. klonos

    klonos New Member

    amavis: No such file or directory ???

    first it was this all of a suden deleted postfix transport and forwarding files and now this:

    in my mail.log. Any ideas guys?? How should I troubleshoot this one?

    Thnks in advance.

    ... never mind. I've figured this one out. It seems something is wrong and some files were reset to default. So the amavis related entries that should have been in postfix master.cf were not there somehow. Added them, restarted postfix and amavis and warning is not there anymore.

    Now the only error I seem to get is:

    in my mail.err file. Trying to sort this out as well. Any help welcomed.
     
    Last edited: Aug 9, 2007
  18. falko

    falko Super Moderator ISPConfig Developer

    Is DCC running?
     
  19. klonos

    klonos New Member

    Well falco, I am not really sure how to check this (I am a newbie), but if what I am doing is right, then:

    If this is not how you do it, please provide the correct command.

    ...also in my mail.log

    not sure if this means it's running or whether it's just stats, but hope it helps.
     
    Last edited: Aug 10, 2007
  20. falko

    falko Super Moderator ISPConfig Developer

    Seems to be running.
    What's the output of
    Code:
    updatedb
    locate dccifd.pid
    ?
     

Share This Page