![]() |
Now serving 103 guides. |
|
Qmail with smtp-auth, vpopmail, binc-imap and qmailAdmin General Information Hosting your own e-mail is a handy thing. This guide will show you how to set up a secure mail server using qmail, vpopmail, qmailAdmin for user management, and smtp-auth so only valid users can send mail.Requirements
Installation qmail with auth patch First, we start off by installing qmail -- this is, after all, the main program that makes up the entire server. First thing we want to do is extract the source so we can apply the qmail auth patch. This allows us to have a smtp server that can relay for certain people only.
tcpserver ( ucspi-tcp ) Nice and simple
Daemontools In order to make the administration of the individual mail programs easier (POP3, SMTP, etc), daemontools will be used. In the case that a daemon/service is brought down or ended, daemontools will make sure that it is restarted within 5 seconds ( Thusly, killing your mail services would be senseless ).
Binc-Imap Binc-Imap is a IMAP server, it is specifically geared for usage with qMail, and works very well with vpopmail
vpopmail The tools we can use to add new accounts and easily manage domains -- Remove users, add mailing lists and more. We set WITH_DOMAIN_QUOTA's so that we can set a quota for a whole domain, and single users. Adding spamassassin with the Alex Dupre patch is a nice way to get rid of unwanted ads and whatnot. Set SPAM_THRESHOLD to any number you want. Anything that is tagged as spam and is over this amount in points, will cause the mail to be deleted.
qmailAdmin This will enable us to administrate the users and mailing lists over HTTP. Note: This requires you to have apache installed and running. Please remember that the paths are relative to /usr/local, so if you want it to be in /usr/home/user/cgi-bin/ you need to make the CGIBINDIR=../home/user/cgi-bin/.
Configuration qmail Now we need to configure qmail to work with daemontools. We will use qmail-conf for this. The last line is to remove the auto start script the ports install added. Not needed if we are gonna use daemontools.
Spamassassin This is not an complete guide, and it is just an easy way to get you going. Put the following in: /usr/local/etc/mail/spamassassin/local.cf
Binc-IMAP This is binc-imap with basic functionality. I will not bother to get a self signed SSL cert going or other stuff like that. If you need such functionality you can read the binc-imap support/help files.
Next up we have to write a little script to automatically add some directories so that binc-imap can create folders and its cache files. Run this script everytime you added a user using qmailadmin or by using the commandline tools. It creates the .spamassassin dirs, and a IMAPdir which binc-imap uses. Now, if the user creates folders they will have to keep using IMAPdir to access those mails, but otherwise they can switch between IMAP and pop3, as both of them can access their Maildir. Ignore any errors it generates because of trying to create the same folder twice. Everything is good.
Configuring vpopmail Now we need to add a domain and a user to the entire system. We do that using the vpopmail tools installed in /usr/local/vpopmail/bin. First we want to add a domain. I suggest adding your computer's hostname or any domain that is pointed at it. Note: sub-domains allowed.
/usr/local/vpopmail/bin and doing an ls -al. To get more info on a command, just type the command name without any parameters and the output will then be displayed.
Using qmailAdmin Using qmailAdmin is simple and straight forward. In any normal browser goto http://yourserversname.com/cgi-bin/qmailadmin/qmailadmin and login as postmaster, fill in the domain you want to login for and type in the password you set. From here you can add users, edit mailing lists and a lot of other things.daemontools Now lets start the entire thing. We can, for easy access, just use the same script that will startup qmail and daemontools on a restart:
Restarting deamontools is not the way to go about restarting your qmail, install, or restarting spamassassin. To restart deamontools:
This guide is © 2003 - 2008 Jan-Willem Regeer. Author: Jan-Willem Regeer 211 Comments Posted by Jon on December 28, 2005 at 3:12:40 am EET
This is a great guide! However, I did find one thing that could help people who already have an existing qmail setup. If you use this guide's setup, you will have to comment out the following line in inetd:
smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd If you don't, any auth will be accepted rather than valid ones. Posted by on December 28, 2005 at 3:12:40 am EET
this article is very informative.. thanks
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Using qMail thru inetd and tcpservers at the same time is a waste of resources, second, inetd is insecure, and is easily crashed. This will help make your mail system stable.
Posted by on December 28, 2005 at 3:12:40 am EET
Excellent Guide!!
Simple and works perfectly!! Thanks ;) Posted by on December 28, 2005 at 3:12:40 am EET
How i can make qmail without auth? a believe i don't need some options in here.
But all other went smoothly Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Just leave out the steps where you have to download the edited qmail file, and leave out these steps:
cat run | sed "/qmaild/s//root/" > run cat run | sed "/qmail-smtpd/s//qmail-smtpd {vpopmail}/" > run cat run | sed "/{vpopmail}/s///usr/local/vpopmail/bin/vchkpw {bintrue}/" > run cat run | sed "/{bintrue}/s///usr/bin/true/" > run That should do it :) Posted by krzee on December 28, 2005 at 3:12:40 am EET
I ran these commands before reading Jarek's question, but i did skip the auth patch. Can you please tell me what commands I could run to undo these changes?
cat run | sed "/qmaild/s//root/" > run cat run | sed "/qmail-smtpd/s//qmail-smtpd {vpopmail}/" > run cat run | sed "/{vpopmail}/s///usr/local/vpopmail/bin/vchkpw {bintrue}/" > run cat run | sed "/{bintrue}/s///usr/bin/true/" > run thank you Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
De the following:
rm -rf /var/qmail/service/smtpd /var/qmail/bin/qmail-smtpd-conf qmaild qmaill /var/qmail/service/smtpd cd /var/qmail/service/smtpd/ echo "200" > env/CONCURRENCY echo '127.0.0.1:allow,RELAYCLIENT=""' > tcp echo ":allow" >> tcp make That should do it :) Posted by gcc on December 28, 2005 at 3:12:40 am EET
hi all,
as i try to follow this guide install qmail tonight, i found qmail work, but vpopmail seems got problem, i am not sure is different version problem, the version i use is 5.4.0. Also, qmailadmin can not work.. Posted by gcc on December 28, 2005 at 3:12:40 am EET
# /usr/local/vpopmail/bin/vadddomain test.mydomain.com
Please enter password for postmaster: enter password again: Error: Domain already exists # /usr/local/vpopmail/bin/vadduser test@test.mydomain.com Please enter password for test@test.mydomain.com: enter password again: Error: Unable to chdir to vpopmail/domains directory Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
For some reason it thinks the domain allready exists.
Run the following commands: cd /var/qmail/users grep -v "^+test.mydomain.com" assign > assign.new mv assign.new assign chown root:qmail assign /var/qmail/bin/qmail-newu cd /var/qmail/control grep -v "^test.mydomain.com" rcpthosts > rcpthosts.new mv rcpthosts.new rcpthosts chown root:qmail rcpthosts cd /usr/local/vpopmail/domains/ rm -rf test.mydomain.com cd .. chown -R vpopmail:vchkpw domains Then try to add the domain again. If it still does not work, you can try what my good friend Derrick did: rm -rf /var/qmail rm -rf /var/service/pop3d rm -rf /var/service/smtpd rm -rf /var/service/qmail rm -rf /usr/local/vpopmail start the tutorial from #1 Posted by StealthNinja on December 28, 2005 at 3:12:40 am EET
wow, great stuff, got this setup on two machines now, and working fine.
great guide Posted by helten on December 28, 2005 at 3:12:40 am EET
Excellent Guide works perfectly!!
all but one thing ... SMTP-AUTH ... my outlook express can't send mail and the server act like the password given to STMP connection i wrong... I use a clean FreeBSD 4.9 with updated ports Posted by fringet1 on December 28, 2005 at 3:12:40 am EET
Your outlook issue may have to do with this, http://support.microsoft.com/default.aspx?scid=kb;en-us;290684 you may want to take a look at that URL. Hope it helps!!
Posted by epoxy_nc on December 28, 2005 at 3:12:40 am EET
tcpserver isnt showing up in ps aux... any ideas? i did JUST waht the guide told me to do
Posted by golodh on December 28, 2005 at 3:12:40 am EET
Hi and thanks for this excellent guide !
I followed the different steps, but got this error on launching vadddomain : [root@host:/usr/local/vpopmail]# /usr/local/vpopmail/bin/vadddomain domain.org Please enter password for postmaster: enter password again: Failure while attempting to remove_line() the locals file Error. Failed to add domain to assign file Error: Could not update file I'm running FreeBSD 5.2.1 on this host. Have you any idea why I got this problem ? Thanks a lot Posted by golodh on December 28, 2005 at 3:12:40 am EET
Excuse me for last message : here's the solution for people encountering same problem in the future :
juste do : # touch /var/qmail/control/locals and then retry to add domain again after deleting it like when domain already exists : > Run the following commands: > > cd /var/qmail/users > grep -v "^+test.mydomain.com" assign > assign.new > mv assign.new assign > chown root:qmail assign > /var/qmail/bin/qmail-newu > cd /var/qmail/control > grep -v "^test.mydomain.com" rcpthosts > rcpthosts.new > mv rcpthosts.new rcpthosts > chown root:qmail rcpthosts > cd /usr/local/vpopmail/domains/ > rm -rf test.mydomain.com > cd .. > chown -R vpopmail:vchkpw domains Sorry for the first question :) And thanks a lot for this great guide ! Posted by nullpt on December 28, 2005 at 3:12:40 am EET
Hello,
This is a great work, thanks! I got everything up and running (domains and users) but i have a problem that is bugging me. If anyone sends me an e-mail i will receive it and keep it in the Maildir/ correctly (this shows that recieving email is going right) but when i try to auth on an user account with any mail client i get this: May 5 03:04:11 mail vpopmail[77668]: vchkpw-pop3: vpopmail user not found null@:81.84.26.99 Thanks for any help that comes! Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
You need to auth using your full email adress.
As in: null@domain.com and not just null :). X-Istence Posted by Mandrich on December 28, 2005 at 3:12:40 am EET
Hi. First of all, thank you for all your hard work! These guides are a fantastic reference. One question though. Why do you change the working directory for qmail, and what do you change it to? I tried reading through the qmail-smtpd.c file to get an idea of what's happening, but my understanding of C is weak. I just like to understand what's being changed from the default setup. Thanks again!
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Nothing is being changed from the default install, except qmail-smtpd.c there is an entire piece added for SMTP auth.
I go into the work directory to apply this patch, thats it. Posted by shrikant on December 28, 2005 at 3:12:40 am EET
I went as per the quide ,I am able to send mails using my server but recieving gives me an error in outlook express
The server responded with an error. Account: 'mail.infodatalab.com', Server: 'mail.infodatalab.com', Protocol: POP3, Server Response: '-ERR this user has no $HOME/Maildir', Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC90 the smae i checked in the /var/log/qmail/current it has an error @4000000040ab41cc05a06054 status: local 1/10 remote 0/20 @4000000040ab41cc05f759f4 delivery 5: deferral: /usr/local/vpopmail/bin/vdelivermail:_permission_denied/ even if i try from local to local user or say same user . Posted by shrikant on December 28, 2005 at 3:12:40 am EET
Guy My problem is solved thanks
Posted by carlosrdelmoral on December 28, 2005 at 3:12:40 am EET
I have two errors when try to add domain and later other error when try to add and user to the domain itself:
step 1- # ./vadddomain mydomain.com Please enter password for postmaster: enter password again: Failure while attempting to remove_line() the locals file Error. Failed to add domain to assign file Error: Could not update file step 2- -> ( but it's appear that the domain is created ) <- on the follow output can see Domain already exists: # ./vadddomain mydomain.com Please enter password for postmaster: enter password again: Error: Domain already exists step 3- # ./vadduser charly@mydomain.com Please enter password for charly@mydomain.com: enter password again: Error: Unable to chdir to vpopmail/domains directory i cannot see domains on this directory, is it ok? # ls -l vpopmail/domains/ total 2 -rw------- 1 vpopmail vchkpw 43 Apr 4 16:03 .dir-control # cat vpopmail/domains/.dir-control 2147483646 0 3 0 0 0 61 61 61 0 2 2 0 0 0 please i need help! carlosrdelmoral@hotmail.com Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
The solution was posted above Carlos.
Posted by stub on December 28, 2005 at 3:12:40 am EET
Hi, really great work, but i have one error. i have installed qmail , i'v done everything according to instructions, but still i have 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) , so i wanna ask what is wrong when in files /control/me locals rcpthosts everything i put is correct. where should i look for error?
thans for help Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
ls -al /var/qmail/control/rcpthosts
cat /var/qmail/control/rcpthosts Paste the output of that, if you want, email me at qmail-help@x-istence.com and i will help you over email. I have no clue what it could be :(. Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
Hello, I had an qmail (smtpd and pop3d) + vpopmail installation and I installed the imapd and squirrelmail. Everything is working ok but the Maildirs are different.
I can log in squirrel and send email, create drafts, etc.. but when Ireceive mails they are gathered in /usr/local/vpopmail/domains/domain.tld/username/Maildir instead of the /usr/local/vpopmail/domains/domain.tld/username/IMAPDir. Is it possible to configure either the imapd to get the mails from Maildir or to get vpopmail sending them to the IMAPDir? thanks! Posted by Jon on December 28, 2005 at 3:12:40 am EET
If you do an ls -l on the IMAPdir, you will see that INBOX is just a link to Maildir. All of your mail is stored in Maildir, whether you use IMAP or POP3.
Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
Sorry for the second reply, that was an error.
Well the script that is provided is a little buggy. First it has a " that doesn't belong there (i guess, at least it gives me some error executing) and the rest is a bit strange. I've done some of it manualy but it's a little sucky coz i have 300+ users. Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
I'm having several errors with the imapdirs.sh that is provided here and i don't seem to able to get it working.
I have ~300 users divided in 8 domains but the script doesn't create the links and dirs in any user and it gives me som "unmatched" error in the 1st find command. Anyone had a problem with this script? Thanks! Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Hey Nullpt2,
I fixed the script, there was indeed an unmatched ", but my SH version did not seem to care (FreeBSD 4.10). Should be all fixed now. I just tested it against about 200 new users on a new box i set up, and it works without a hitch. Please try again :) Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
Thanks! It doesn't gives me that error anymore but when I'm cating the script to the file i get a strange content in the for's. I have the domains with path in the first for and the domains without the path in the second for. Shouldn't this be a little different?
thanks Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
When I try to execute it I have a fatal error:
imapdir.sh: 4: Syntax error: word unexpected Maybe I can discuss this issue trough mail? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
sure, <email address be gone. Spam be gone> :).
And i allready think i know why. Instead of catting it to the file, use edit, and just copy and paste into whatever you are using to SSH, and see if it works. Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
Still not working :( I'll give you a full detail trough the email. Thanks!
Posted by fakrul on December 28, 2005 at 3:12:40 am EET
Is it possible to configure either the imapd to get the mails from Maildir or to get vpopmail sending them to the IMAPDir?
Yes it is possible. Don't use ln -s. Edit the /usr/local/etc/bincimap/bincimap.conf file and change the depot = "IMAPdir", to depot = "Maildir++". Start Stop the qmail and enjoy :-) Posted by layer on December 28, 2005 at 3:12:40 am EET
"Yes it is possible. Don't use ln -s. Edit the /usr/local/etc/bincimap/bincimap.conf file and change the depot = "IMAPdir", to depot = "Maildir++". Start Stop the qmail and enjoy :-)"
i can't get this work :( i can't acess e-mail via IMAP...i can login but no mails only in POP3 "Don't use ln -s" where ? one more thing, i'm using outlook to send e-mail... i can send e-mail whtouth pass how to fix this ? Thanks PS: i'm a newbie sory ... Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
layer: That what you want allready happens currently. Except it just symlinks it from INBOX to ../Maildir.
If you would not like to do this, do what he said, except just forget about the "maildir.sh" script, and never run it. Then edit /usr/local/etc/bincimap/bincimap.conf so that the line: depot = "IMAPdir" Looks like depot = "Maildir++" svc -dx /var/service/binc-imap And you are set :). Good luck, contact me via email if you need more help. <email address removed. Spam be gone.> Posted by nullpt2 on December 28, 2005 at 3:12:40 am EET
Hello, since the SpamAssassin upgrade available in the freebsd port system that you need now to upgrade your perl to 5.8. Doing this you will have to upgradeall your perl ports and other software depending on perl.Since that I had to make some modifications in the SpamAssassin as it doesnt allow -a anymore and im having some problems because there is so many changes in the configuration that im getting crazy!
Could the writter of this guide update to the new spamassassin version configuration? Thanks! Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
I'll look into it.
Posted by j79zlr1 on December 28, 2005 at 3:12:40 am EET
Just a note, for SA-3.x which was just added to the ports tree, remove the -a switch in /var/spamd-service/run so the run script is:
#!/bin/sh exec /usr/local/bin/spamd -c -v -u vpopmail I guess the whitelists option is gone in 3.x and it caused perl5.8.5 to hang after I had upgraded, removing that switch fixed it. From the upgrading FAQ: - The --auto-whitelist, --whitelist and -a options for "spamd" and "spamassassin" to turn on the auto-whitelist have been removed and replaced by the "use_auto_whitelist" configuration option which is also now turned on by default. Posted by rjk on December 28, 2005 at 3:12:40 am EET
Hello. Thank you very much for putting together this outstanding guide! I notice when running this setup my BincIMAP log /var/qmail/service/binc-imap/log/main/current contains has the following messages:
@40000000418fd8e41f1db89c softlimit: fatal: unable to run ${DATALIMIT+-d$DATALIMIT}: file does not exist I double-checked my "run" shell script against the guide and everything seems to match. I have the DATALIMIT file in /var/qmail/service/binc-imap/env and the file contains 500000. Any idea what the problem could be? Thanks Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
What does your /var/qmail/service/binc-imap/run file look like? If you copied and pasted it from this website, it should work perfectly.
If you need any help, email me at qmail-guide [at] x-istence [dot] com Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
I have updated my guide according to j79zlr's information. It should work with SA 3.0 now.
j79zlr: The way you are using SA, you would have information show up in readproctitle because you are not having SA log it to stderr to be logged by multilog. Posted by rjk on December 28, 2005 at 3:12:40 am EET
Hello. Thank you very much for putting together this outstanding guide! I notice when running this setup my BincIMAP log /var/qmail/service/binc-imap/log/main/current contains has the following messages:
@40000000418fd8e41f1db89c softlimit: fatal: unable to run ${DATALIMIT+-d$DATALIMIT}: file does not exist I double-checked my "run" shell script against the guide and everything seems to match. I have the DATALIMIT file in /var/qmail/service/binc-imap/env and the file contains 500000. Any idea what the problem could be? Thanks Posted by diggz on December 28, 2005 at 3:12:40 am EET
This guide was AWESOME! Very thorough and much appreciated :)
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
rjk: your problem is the fact that you did not use cat, but instead copied and pasted it straight into a text file. This means that the shell filtering did not happen, and in this case, it means that you left certain 's in the run file. This would cause it to not work, as instead of interpreting that as a variable, it would interpret it as a command that it has to run.
Please copy and paste the cat << EOF > {file} then the entire script right into cat, and then EOF. This will cause the file to be written properly, and it will then work. X-Istence Posted by dan_simons on December 28, 2005 at 3:12:40 am EET
I can't get vpopmail to work after trying the posted fix twice now. I am using 5.3 and following the steps by the site....
/usr/local/vpopmail/bin/vadddomain hardrocksociety.com Please enter password for postmaster: enter password again: Failure while attempting to remove_line() the locals file Error. Failed to add domain to assign file Error: Could not update file Any help is appreciated, as I'm a sorta noob. I assume this is due to 5.3.... Dan Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
No, 5.3 should not be the problem, and should work perfectly.
Did you touch /var/qmail/control/locals as root? Also, after that vadddomain do a vdeldomain <domain> and then try readding it. It should work. Posted by bergie2326 on December 28, 2005 at 3:12:40 am EET
I ran into the same problem as Dan Simmons, it seems the directory attributes weren't allowing root to write to the /usr/local/vpopmail/domains directory, if fixed the problem by:
#ls /usr/local/vpopmail/ drwxr--r-- -------------> domains #chmod 755 /usr/local/vpopmail/domains Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
root can write to any directory, even if it is chmod 000:
Breached# ls -al ./test total 4 d--------- 2 root xistence 512 Nov 17 17:00 . drwxr-xr-x 17 xistence xistence 1024 Nov 17 17:00 .. Breached# cd test Breached# touch file Breached# ls -al total 4 d--------- 2 root xistence 512 Nov 17 17:01 . drwxr-xr-x 17 xistence xistence 1024 Nov 17 17:00 .. -rw-r--r-- 1 root xistence 0 Nov 17 17:01 file The problem is because /var/qmail/control/locals does not exist. Once this file is created, all should work without a problem. By chmodding the directory domains to 755 you are allowing anyone and everyone to take a peek at what domains you host. [Breached: ~]$ ls -al /usr/local/vpopmail/domains lrwxr-xr-x 1 root wheel 17 Apr 26 2004 /usr/local/vpopmail/domains -> /usr/storage/mail [Breached: ~]$ ls -al /usr/local/vpopmail/domains/ ls: : Permission denied [Breached: ~]$ ls -al /usr/storage/mail/ ls: : Permission denied X-Istence Posted by dan_simons on December 28, 2005 at 3:12:40 am EET
I fixed the vpopmail issue. There as no local file in control. Everything works now except sending to external addys I get the "553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)" error. I noticed other people have mentioned it. What was the fix??? I must be overlooking something simple.
Any ideas? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
It seems you want to relay. What you are however not doing is authenticating when you are about to send mail.
You will need to set it in your preferences for your mail client somewhere, and then it will work. Look for an option named "SMTP authentication" or something similar. If you need extra help, search on google for "SMTP authentication for sending mail with {CLIENT NAME}" Posted by mrmouse on December 28, 2005 at 3:12:40 am EET
Sorry if this is a silly question (I am a noob), but how do you setup an alias for local accounts to send to a remote email account with qmail? I put the email address I wanted the local root account to have mail sent to in /var/qmail/alias/.qmail-root (like it said on the qmail website), but it doesn't seem to work. Since the guide doesn't use sendmail (and specifically disables it), updating the /etc/mail/aliases file and running newaliases doesn't do the trick either. Any info would be great. Thanks for the great guide!
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
mrmouse, did you add the domain or hostname to the locals file?
And /etc/mail/aliases is a sendmail file, and is not used by qmail. /var/qmail/alias/.qmail-root is the right file to create. It should contain something like &remote@remotedomain.com. qmail refuses to deliver to uid 0. Posted by mrmouse on December 28, 2005 at 3:12:40 am EET
I had tried that, but I must not have put in the correct info initially. I added:
localhost myhostname.mydomain.com to /var/qmail/control/locals and setup the .qmail-root file. Works! Thanks again, you're awesome! Posted by dan_simons on December 28, 2005 at 3:12:40 am EET
"the binc-imap configuration is not complete enough to work. It will be complete tomorrow."
I'm having trouble with bincimap. Wondering if this has anything to do with it. I can't log in to it. OK Welcome to Binc IMAP Copyright (C) 2002-2004 Andreas Aardal Hanssen at 2004-12-16 00:45:19 CST 1 LOGIN Dan password 1 NO LOGIN failed: Login failed. Either your user name or your password was wrong. Please try again, and if the problem persists, please contact your system administrator. Vpopmail and qmailadmin all work, just trying to get webmail working. tried the Horde guide, but had authentication problems. So I think the first step is to solve this error i get when trying to connect telnet. Any ideas?? Dan Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
you need to use your full email address to login:
dan@domain.com Then it will work. And that comment is an old one, i should remove it some time :P. Posted by dan_simons on December 28, 2005 at 3:12:40 am EET
*dah* to me ;) Thanks again.
Posted by olivier_pe on December 28, 2005 at 3:12:40 am EET
Hi,
Excellent work !! It seems to be ok for me except that I feel a problem with SMTP... If I send an email to an address that I have declared, I never receive it. And the fact is that I have nothing listenning on the port 25. Regarding my processes, I have an entry with supervise smtpd I also have sytematically a defunct process which I did not have before... It could be linked... The problem is that I don't know where to take a look to try to find my mistake... Any idea ? Thanks a lot for this big work very usefull ! Happy new Year ! Olivier Posted by olivier_pe on December 28, 2005 at 3:12:40 am EET
mmm... the file /var/qmail/service/smtpd/run is empty.
I think I have missed something... Is there a way to got the original one ? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Last edit failed, pico had added line breaks all over the place.
Should be good now, repeat the section under configuring qmail. Ignore most errors, just make sure to shutdown svscan. Posted by StPurple on December 28, 2005 at 3:12:40 am EET
Thanks for the great guide. I've installed it on a 5.1.2 system before and it worked great. This time I'm using your guide to install it on a 5.1.3. system. Everything works great execpt for imap. I can get mail when I use the pop protocol but when I'm using imap I get the "login failed" error. I have no clue where to look for the solution since I can't find any entry in logfiles about this denial. I double checked if a used the user@domain.com format so that's not it...Can somebody give some advice??
Posted by StPurple on December 28, 2005 at 3:12:40 am EET
Sigh..forgetting some info....
pacsforum# ps -aux |grep imap root 488 0.0 0.1 1188 548 ?? I 4:10PM 0:00.00 supervise binc-imap root 497 0.0 0.1 1212 572 ?? I 4:10PM 0:00.01 /usr/local/bin/tcpserver -vDHR -c200 -xtcp.cdb -- 0 143 /usr/local/bin/bincimap-u root 16385 0.0 0.1 1476 816 p0 S+ 11:59AM 0:00.00 grep imap binc-imap is running... I compared the 5.1.3 with the 5.1.2 system and the only difference I can find is some bincimap files in de IMAPdir's and Maildirs (like .bincimap-subscribed, bincimap-cache and bincimap-uidvalidity) Don't know if these are created on first loging cause I can't find their creation in the guide Posted by StPurple on December 28, 2005 at 3:12:40 am EET
ppfff...found it....There's a typo in your guide...(I think). In the bincimap run file there's a missing right after /usr/local/bin/bincimap-up --logtype=multilog.
Working fine now :) Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Thank you StPurple, i have added the offending back into the script, and things should work fine again.
Posted by fakrul on December 28, 2005 at 3:12:40 am EET
I have facing one problem. My qmail is working porperly; but my maillog show the follwoing error:
Jan 11 23:33:41 matrix spamd[5273]: handle_user: unable to find user 'username@domain.com'! But the patricular user with the domain exists. The mail is sending properly and i can see the "X-Qmail-Scanner-Mail-From", "X-Qmail-Scanner" in the mail header. Beside this i have these line in the maillog whenever any user receive any mail: Jan 11 23:07:48 matrix spamd[4762]: Cannot write to /root/.spamassassin/user_prefs: Permission denied It's seems that i have done some wrong in the configuration of spamassassin. Any idea?? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
you have modified my guide to include qmail-scanner, you are on your own. I have not, and will never use qmail-scanner. Please contact the appropriate mailling list for more information.
Posted by Conq on December 28, 2005 at 3:12:40 am EET
Wow...it works like a dream.
Have you ever thought about including af virus scanner ? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Conq: Yes i have.
I would like to implement a virus scanner in the delivery process, not in the smtpd process. I am still looking for a way to implement this successfully. If you would like to do virus scanning, look into http://inter7.com/ 's simscan. They also have an extensive mailling list where you can go for questions, and i have heard nothing but good things about them. With it you can implement spam and virus scanning at the smtpd level. http://inter7.com/?page=simscan Posted by Conq on December 28, 2005 at 3:12:40 am EET
Thanx, i will try to look at inter7.
Posted by nasko on December 28, 2005 at 3:12:40 am EET
You can configure vpopmail to store users and domains in mysql database...
To do so you must install vpopmail like that: make install clean -DWITH_DOMAIN_QUOTAS -DWITH_SPAMASSASSIN SPAM_THRESHOLD=10 -DWITH_MYSQL (There are many others install options for vpopmail. If You wish to look at them, just cut the Makefile of vpopmail. I also use: -DWITH_LEARN_PASSWORDS -DWITH_CLEAR_PASSWD to feed my needs.) Then You must create a database and user for vpopmail in mysql: # mysql > create database vpopmail; > GRANT select,insert,update,delete,create,drop ON vpopmail.* TO vpopmailuser@localhost IDENTIFIED BY 'password'; > q Next edit the /usr/local/vpopmail/etc/vpopmail.mysql and change the user and password that You typed in mysql. The file has following format: host|port|user|password|database # chmod 640 /usr/local/vpopmail/etc/vpopmail.mysql ...and You are ready to rock!!! Posted by epoxy_nc on December 28, 2005 at 3:12:40 am EET
when i get mail i have to use user@mydomain.com as the login... i was wondering why i can't just use the username?
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
because it is a virtualdomain, there could be several domains that could have the same user, which one would you want your mail for? That is why vpopmail requires the username[at]domain.com. If you used qmail with just system users, using checkpasswd, and not this guide in the first place, you could use just your username.
Posted by Boba55 on December 28, 2005 at 3:12:40 am EET
Hi Thanks for providing a great guide. I am however (being a total noob) experiencing some problems. Having completed the installation I find that when I do a ps aux I get this line:
root 197 0.0 0.1 868 300 ?? I 7:30PM 0:00.00 /usr/local/bin/readproctitle service errors: ........................................................................................ And I can't work out why. Also qmailadmin won't work - I added a new user with vpopmail but when I put in the requisite url I get a 404. Lastly Is it ok to run this system in conjunction with webmin/virtualmin? Thanks Bob Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
First off: That line is perfectly normal.
Second: Qmailadmin might have been moved to http://domain.com/qmailadmin/qmailadmin, i will check this, i am working on a revised copy of my guide anyways. Thirdly: That i do not know. There should be no side effects, or at least there are none that i can think off. Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
It worked just wonderfully, EXCEPT for one little problem.
I can send e-mail just perfectly, even if I telnet to my host on port 25, and it just closes the conection right on my face (strange? I'm all newbie here), and I'm not being able to recieve any e-mail, I send an e-mail from a known working web-mail server(like gmail), and I don't recieve neither the e-mail, neither an error on the gmail!!! I can connect using IMAP and/or POP3, and if I manually browse the /usr/local/vpopmail/domains/ I see I really didn't recieved any e-mail. Any help would be apreciated :) Thx a lot, and congrats on this GREAT paper!!! Zarnick Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
What does:
svstat /var/service/* show you? Might want to check that your ISP is not blocking ports, or any other firewall you configured yourself. Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
This is the output of svstat /var/service/*
/var/service/binc-imap: up (pid 498) 50163 seconds /var/service/pop3d: up (pid 496) 50163 seconds /var/service/qmail: up (pid 491) 50163 seconds /var/service/smtpd: up (pid 489) 50163 seconds /var/service/spamd-service: up (pid 499) 50163 seconds And this is the output of my ipfw: 00100 divert 8668 ip from any to any via xl0 00200 deny icmp from any to any icmptypes 13 00300 deny icmp from any to any icmptypes 14 00400 deny tcp from any to any tcpflags syn,fin 00500 allow ip from 127.0.0.1 to 127.0.0.1 via lo0 00600 allow ip from any to any dst-port 22 in via rl0 00700 deny ip from any to any dst-port 137,138,139,81 00800 deny ip from any to 10.0.0.0/24 dst-port 22 00900 deny ip from any to any dst-port 22 01000 allow ip from 10.0.0.0/24 22 to any dst-port 22 via rl0 01100 allow tcp from any to 10.0.0.4 dst-port 80 in recv xl0 01200 allow ip from any to any 65535 deny ip from any to any I know, I know, I have to work harder on the firewall, is is not as secure as I think. And I now that the ISP does not block, since I already had one version of qmail+vpopmail+mysql, but runing on a Slackware box, and since I happily upgraded the Slackware to FreeBSD, this is the only issue that is hanging in the half :) Thx a lot! Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
By the way, is there any good webmail that works with this configuration of qmail?
Thx! Zarnick Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Hrm, this is very weird, i would not have a clue, is tcpserver running on port 25?
sockstat -4 | grep 25 Check your /var/service/smtpd/run file for any wrong doings. If you can not find any, i would have no clue. Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
Here's the output of sockstat:
www httpd 1258 3 tcp46 *:80 *:* www httpd 1258 4 tcp46 *:443 *:* www httpd 1257 3 tcp46 *:80 *:* www httpd 1257 4 tcp46 *:443 *:* www httpd 1252 3 tcp46 *:80 *:* You see, I don't think the problem could be at smptd, since I can send e-mail, what I can't do, is recieve them. ;) Really, no clue at all? www httpd 1252 4 tcp46 *:443 *:* qmaild tcpserver 489 3 tcp4 *:25 *:* Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
If you really don't heave any clue, how can I deinstall all of this, so I can try another tutorial?
sigh...tought this would solve my problem...O well... Thx. Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
Well!!! :)
Just fixed the smtpd problem :) The tcp file was empty and so the env/CONCURENCY filled them, and did a make, and now the smtpd is working perfectly, however I'm still not geting any mail, even if I send an e-mail to a non-existent user, I recieve no e-mail telling that this user does not existe :( Thx Zarnick. Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
YUP YUP URRA!
Everythings works smooth...just one thing, I'm not being prompet for a login/password to send e-mail, is this normal? Thz a lot. Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Depends on how you configured your client, and how you setup your smtp ip's and wether you have a proper rcpthosts setup.
You receive email on port 25, so that is why i was wondering if smtpd is working, you seem to have fixed it though. Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
Thanks, I will try to...han...hack...my own server, to see if over the web, it isn't password protected, and I will post here again. ;)
And, do you know any good webmail for this config? Thx a lot! Posted by Zarnick on December 28, 2005 at 3:12:40 am EET
Ok, so...tryed to send a "spam" by telneting into port 25, and it seems that spamasassin got the e-mail, and marked as spam, plus it didn't sent over the web, only to my internal server, cool. Now all that I need is a simple webmail. Thx a lot, your guide ROCKZ!
Posted by Jon on December 28, 2005 at 3:12:40 am EET
For webmail, there are a lot of options. You can choose from squirrelmail, <a href="http://www.bsdguides.org/guides/freebsd/mailserver/imp.php">Horde/IMP</a>, Nuralstorm, ilohamail, etc. You just need to make sure it supports vpopmail for virtual domains.
Posted by franknbeans on December 28, 2005 at 3:12:40 am EET
Okay, I've got everything working fine except for ONE thing that's bugging the heck out of me. When I send mail, there is a five second delay. Upon examining my log files, this is what I see:
Feb 24 21:59:48 alkaline vpopmail[315]: vchkpw-smtp: password fail xxxxx Feb 24 21:59:53 alkaline vpopmail[316]: vchkpw-smtp: (PLAIN) login success xxxxx Why in the world would the password check fail, then five seconds later succeed? Any help would be appreciated. Note, I'm not using IMAP, spamassassin or qmailAdmin. Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Because your client is first trying CRAM-MD5, something i should have disabled in the patch, and then trying PLAIN after it does not succeed when using CRAM-MD5. Set the client to specifically use PLAIN login.
Posted by franknbeans on December 28, 2005 at 3:12:40 am EET
I actually set my client (Thunderbird 0.9) NOT to use TLS, but I guess I could try a different client and see if maybe it's a bug in Thunderbird. I will keep you posted.
On the flipside, how would one enable the TLS (CRAM-MD5) with your setup. Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
TLS is not CRAM-MD5, but to enable it, you would need to compile vpopmail with clear passwords.
Posted by franknbeans on December 28, 2005 at 3:12:40 am EET
> TLS is not CRAM-MD5, but....
Well, in Thunderbird you either have "NO", "TLS if AVAILABLE", "TLS" or "SSL." I have it set to NO. Posted by baybiz on December 28, 2005 at 3:12:40 am EET
Will this work with 5.3?
I get an error message that make fetch is not recognised as a command. (3rd command set) Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
make fetch works like a charm.
I just ran over my guide again, and it works without any problems at all. Posted by baybiz on December 28, 2005 at 3:12:40 am EET
mine says "don't know how to make fetch" Am I missing some other package or port?
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Nope, a clean install should work.
Posted by baybiz on December 28, 2005 at 3:12:40 am EET
actual message is
make: don't know how to make fetch. stop it is a fresh install from the mini install disk - any ideas?? Posted by Jon on December 28, 2005 at 3:12:40 am EET
Are you in the correct directory when trying to make fetch? You should be in /usr/ports/mail/qmail when you do make fetch.
Posted by baybiz on December 28, 2005 at 3:12:40 am EET
Ah - the simple things that bite you. That was the problem. Thanks
Posted by ewonde on December 28, 2005 at 3:12:40 am EET
an amazingly great mailserver solutions is this. I've toasted qmail with the manuals from qmailrocks.org, but these installations were terrible slow and loaded with features we really don't need at all.
One (crucial IMO) thing i'm missing here is how to implement an antivirus package (like clamAV). Anyone any experiences with it an how to do this? Thanks in advance! Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Http://inter7.com/ offers simscan for just that purpose. It has good documentation and it's own maillling list.
I personally did not put it into my guide, as i find that virus and spam scanning slows down the smtp messaging system, and i personally do it farther down the chain when a message is about to be delivered to someone. Posted by nasko on December 28, 2005 at 3:12:40 am EET
To ewonde: take a look at: http://freebsd.cg.nu/qmail+amavis.html
Posted by ewonde on December 28, 2005 at 3:12:40 am EET
thnx! gonna give it a try.
Posted by ewonde on December 28, 2005 at 3:12:40 am EET
Simscan seems to be much easier to install and fits well to my requirements. Hope to find a "how-to" doc ;-)
Thnx! Posted by B-ram on December 28, 2005 at 3:12:40 am EET
I first had this error:
Failure while attempting to remove_line() the locals file Error. Failed to add domain to assign file Error: Could not update file then I read the fix above. After that I got the error that the domain already excist, so I tried the fix for that above. that didn't work :o( after a loth of trying I got the solution I had to do: #/usr/local/vpopmail/bin/vadddomain MyDomain.nl Password (the password behind your domain) and it worked! Just thought to share my solution with you guys. Don't really understand why this IS working, looks a bit weird to me. Posted by netphreak on December 28, 2005 at 3:12:40 am EET
Hey awesome guides!
I have got a bit of a problem though... I have been following the guide to the letter, and struck this problem when trying to add a domain in the "Configuring vpopmail" section. This is the same result as I got yesterday after which i did all the rms listed below and did make deinstalls on everything before redoing the guide from scratch. What am I doing wrong? snip===> mail3# /usr/local/vpopmail/bin/vadddomain mail3.pchost.com.au Please enter password for postmaster: enter password again: Failure while attempting to remove_line() the locals file Error. Failed to add domain to assign file Error: Could not update file mail3# <====snip I am running a fresh install of FreeBSD 5.3 and have only completed the "Apache+SSL, PHP, and MySQL " guide from this site since installing. Posted by netphreak on December 28, 2005 at 3:12:40 am EET
Hey awesome guides!
I have got a bit of a problem though... I have been following the guide to the letter, and struck this problem when trying to add a domain in the "Configuring vpopmail" section. This is the same result as I got yesterday after which i did all the rms listed below and did make deinstalls on everything before redoing the guide from scratch. What am I doing wrong? snip===> mail3# /usr/local/vpopmail/bin/vadddomain mail3.pchost.com.au Please enter password for postmaster: enter password again: Failure while attempting to remove_line() the locals file Error. Failed to add domain to assign file Error: Could not update file mail3# <====snip I am running a fresh install of FreeBSD 5.3 and have only completed the "Apache+SSL, PHP, and MySQL " guide from this site since installing. Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
netphreak: Several comments above yours contain the same information. Specifically a post made by golodh on April 29, 2004 at 3:25:36 pm MST is what you want to read.
Posted by netphreak on December 28, 2005 at 3:12:40 am EET
oops... thought I read all the previous comments, thanks for that prob is fixed now. Great stuff thanks for your help!!!
Posted by netphreak on December 28, 2005 at 3:12:40 am EET
Hey this tutorial is awesome, is it possible that anyone could refer me to a webmail type setup to suit this install, the simpler the better, any help would be hugely appreciated, thanks
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
you can use any webmail script which supports IMAP and or POP3.
Posted by peeyoll on December 28, 2005 at 3:12:40 am EET
Hey Guys,
Cool guide. Worked like a charm first go! One thing though. I would like to be able to have both virtual accounts through vpopmail and also system user email accounts. I am a noob to an extent so go easy. The problem is that I have a server with existing email accounts that I would like to bring across to the server with this setup. However there are quite a few accounts and it would be ridiculous to contact all the clients and tell them their username has changed. At the same time I would like to gradually move towards the email address as username approach. If anyone could help it would be much appreciated. Posted by B-ram on December 28, 2005 at 3:12:40 am EET
How can I fetch the mail in for example Outlook Express? What are the settings for this? I have tried a few things but I simply don't have a clue...
Posted by Jon on December 28, 2005 at 3:12:40 am EET
Your username is the full email address, password is whatever you set. In order to send mail, you need to check the box to enable smtp authentication.
Posted by B-ram on December 28, 2005 at 3:12:40 am EET
i can't get it to work, i set my incoming server to: pop3.mydomain.nl and outgoing to smtp.mydomain.nl but it don't work I keep getting this error while checking for mail:
An error accured while connecting to the e-mail server. Your password is not accepted Account: 'pop3.mydomain.nl', Server: 'pop3.mydomain.nl', Protocol: POP3, Reaction from the server: '-ERR authorization failed', Port: 110, Secured(SSL): No, Serverfailure: 0x800CCC90, Foutnummer: 0x800CCC92 Posted by alienbob on December 28, 2005 at 3:12:40 am EET
Hi,
Great guide working really nicely as a POP server, only issue that I have is that I can't use imap mail :( It seems that the service is running: #svstat /var/service/* /var/service/binc-imap: up (pid 68734) 1208699 seconds /var/service/pop3d: up (pid 68725) 1208699 seconds /var/service/qmail: up (pid 68731) 1208699 seconds /var/service/smtpd: up (pid 68726) 1208699 seconds /var/service/spamd-service: up (pid 68950) 1208403 seconds but when I try to telnet to localhost 143 I get: #telnet 192.168.7.2 143 Trying 192.168.7.2... Connected to marge.domain.tld. Escape character is '^]'. Connection closed by foreign host. and if I do: #ps -ax | grep imap 68733 ?? I 0:00.06 supervise binc-imap 68734 ?? I 0:00.05 /usr/local/bin/tcpserver -vDHR -xtcp.cdb -- 0 143 /usr/local/bin/bincimap-up --logtype=multilog --conf As far as I can see I think that I have followed the guide to the letter but maybe not, perhaps somebody could advise please? Many thanks! Posted by Karlos on December 28, 2005 at 3:12:40 am EET
Hi all!
How to skrew on to this exelent buliding a Clamav antivirus?? With respect, Karl Posted by nienithaur on December 28, 2005 at 3:12:40 am EET
I know this guide doesnt cover the subject, and maby thats why Im having such difficulties.. But concearnig mysql authentication whith vpopmail I cant get vqadmin to work. I seams like all the tables except for "dir_control" are missing in the vpopmail database. I though that vpopmail added all the tables automatically, but maby I thought wrong.. Anyhow, I can log in to the interface, but cant add any users.. My apache log says: vmysql: sql error[3]: Table 'vpopmail.vpopmail' doesn't exist wich isnt much of a big surprise..
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
nieanithaur: I can't help you. Contact the vpopmail mailling list. They will probably tell you to install from the LWQ, and vpopmail from scratch, just read the docs, it should be explained, and look for whatever the SQL stuff is that vpopmail needs in it's source code tar.gz.
Posted by vespa on December 28, 2005 at 3:12:40 am EET
Hi,
Sorry by avance because I don't speak well English. I've got a question : After done all this guide I can send email, I can receive email by POP, I can login via imap but not receive mail via emap ... can you help me please ?? I have replace : depot = "IMAPdir" by depot = "Maildir++" but It doesnt work ;( Posted by vespa on December 28, 2005 at 3:12:40 am EET
PS :
monstre# svstat /var/service/* /var/service/binc-imap: up (pid 537) 4878 seconds /var/service/pop3d: up (pid 533) 4878 seconds /var/service/qmail: up (pid 526) 4878 seconds /var/service/smtpd: up (pid 524) 4878 seconds /var/service/spamd-service: up (pid 536) 4878 seconds monstre# ps -ax | grep imap 530 ?? I 0:00.00 supervise binc-imap 926 ?? S 0:00.08 kdeinit: kdeinit: kio_imap4 imap /tmp/ksocket-root/kl 933 ?? S 0:00.84 kdeinit: kdeinit: kwrite /usr/local/etc/bincimap/binc 939 ?? S 0:00.01 /usr/local/bin/bincimap-up --logtype=multilog --conf= 940 ?? S 0:00.01 /usr/local/bin/bincimapd 941 ?? S 0:00.77 kdeinit: kdeinit: kwrite /usr/local/etc/bincimap/binc 985 p1 R+ 0:00.00 grep imap monstre# Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Did you run my script after adding the new account?
Posted by vespa on December 28, 2005 at 3:12:40 am EET
Hi X-Istence ;)
I don't know, about which script are you speaking ? and how run it ? One's again sorry for my english ;) Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
The imapdir.sh script that you installed on your server when you ran this tutorial.
Posted by vespa on December 28, 2005 at 3:12:40 am EET
Hi X-Istence ;)
Thanks for your answer.. Yes I have ran this script. This is what I have on my computer : /usr/local/vpopmail/domains/mydomain.fr/vespa Inside there is : ImapDir MailDir When I go in ImapDir I have : Inbox When I go in "Inbox" I'm in /usr/local/vpopmail/domains/mydomain.fr/vespa/Maildir when I go in Maildir I have : Cur New Tmp For me it look good but it doesn't give me my mail via imap only via pop... Have you got an idea ?? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
It should be called IMAPdir, in your config file for binc-imap you also need IMAPdir to be the depot type, and you should be set.
Posted by StPurple on December 28, 2005 at 3:12:40 am EET
After a succesfull upgrade from 5.3 to 5.4-p3 I'm experiencing problems with the spamd-service. (everything was running fine for several months already) Spamd seems to keep restarting itself. Anyone else experiencing something similar?
Posted by StPurple on December 28, 2005 at 3:12:40 am EET
Hmmm....I found that some other things aren't correct either. I think things started going wrong from the first moment I upgraded qmail with a "normal" portupgrade. Since you give those directives and settings to the different ports when making them, what should be the way to upgrade those used ports?
Posted by Jon on December 28, 2005 at 3:12:40 am EET
Qmail should be upgraded by using the ports and first running
make deinstall Then install it with the compiling options as above. Posted by andraskende on December 28, 2005 at 3:12:40 am EET
My mailserver was based on this very nice howto ...
chkuser would be a simple and great addon.. If there is high volume spam coming in either "cathcall delete" or chkuser can help, otherwise bounce queue can be a problem... Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
I think chkuser also allows people to joejob your mail server, by knowing which accounts are alive and which accounts do not even exist. It makes spamming that much easier. If you wish to have it, then patch qmail before installing it with make install as above, or check in the Makefile if chkuser has been added as a possible patch by the qmail port maintainer.
Posted by rabb1d on December 28, 2005 at 3:12:40 am EET
I get an error message:
root@box:/var/qmail/bin# /var/qmail/bin/qmail-pop3d-conf /usr/local/vpopmail/bin/vchkpw qmaill /var/qmail/service/pop3d su: /var/qmail/bin/qmail-pop3d-conf: Permission denied I would have assumed it be a permissions thing, but I dont see any conflicts unless I am overlooking something obvious. -rwxr-xr-x 1 root qmail 15020 Aug 3 14:13 /var/qmail/bin/qmail-pop3d-conf Posted by rabb1d on December 28, 2005 at 3:12:40 am EET
dead project?
Posted by lexie on December 28, 2005 at 3:12:40 am EET
It seems there are some problems with filtering emails in case of using .qmail files. Does someone have solution? Thanks.
Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
Lexie: I noticed this as well, i am still looking what the problem may be. I will be notifying the port maintainer ASAP. As for a solution? Recompile vpopmail without SA support, and use maildrop or some other solution to ask SA to scan the email.
Posted by Pouic_Pouic on December 28, 2005 at 3:12:40 am EET
Hello there !
Thanks a lot for this document. I'm a french new user of FreeBSD, so excuse my bad english and my low level with the system. I encounter an error when I want to "make fetch all install force-enable-qmail WITH_QMAILQUEUE_PATCH=yes WITH_BIG_TODO_PATCH=yes WITH_BIG_CONCURRENCY_PATCH=yes WITH_OUTGOINGIP_PATCH=yes" The error is : "make: don't know how to make base64.h. Stop *** Error code 2 Stop in /usr/ports/mail/qmail." In my mind, the only thing I did diffrently than the document is to download the smtpd-auth patch here : http://members.elysium.pl/brush/qmail-smtpd-auth/dist/qmail-smtpd-auth-0.31.tar.gz My FreeBSD is a 5.4 RELEASE and frequently updated, so all ports must be uptodate. Someone can help me ? Posted by Pouic_Pouic on December 28, 2005 at 3:12:40 am EET
Sorry, I forgot a thing :
when I have made the "make extract" of /usr/ports/mail/qmail , I had the choice in a menu to add the options you add after with the commands "WITH_QMAILQUEUE_PATCH=yes WITH_BIG_TODO_PATCH=yes WITH_BIG_CONCURRENCY_PATCH=yes WITH_OUTGOINGIP_PATCH=yes" What is better ? Posted by X-Istence on December 28, 2005 at 3:12:40 am EET
It does not matter what method you use. The difference between the smtpd-auth patches may be the way they function, you can't apply both. I have never used that auth patch, so i don't know how it functions. I know my patch works, so you should use that instead, as i am unable to guarantee that the patch you are using will take the |

