Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: qmail vpopmail courier-imap qmail-scanner etc (NEW)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 23, 24, 25  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
slaapkop
n00b
n00b


Joined: 04 Mar 2004
Posts: 66
Location: Nijmegen

PostPosted: Mon Sep 20, 2004 1:32 pm    Post subject: Reply with quote

Hello,

Nice howto, i think i will install it, i currently run postfix with imap-ssl. I post this question in the first version of this howto, but i didn't get an answer.

My question is: Is an ' emerge -C postfix ' eneogh to delete my entire email settings. Every thing works great tho, but currently my email users are system users as wel. That and the fact that i want to learn about different MTA's as wel (got to keep the brain in shape) are the reasons why i want to change my MTA. And i read Qmail is good.

Thanks

p.s Sorry for the bad English.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Mon Sep 20, 2004 9:38 pm    Post subject: Reply with quote

It just dosnt look like anything is working other than sending and recieving mail.
currently running


I use:

    dev-lang/perl-5.8.4-r1
    mail-mta/qmail-1.03-r13
    mail-filter/qmail-scanner-1.23-r3
    mail-filter/spamassassin-2.64
    app-antivirus/f-prot-4.3.1

tcp.smtp has
Code:

127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue"

192.168.1.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue"
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue

so im sending and recieving all mail fine it appears. can anyone help further?

side note http://www.testvirus.org every single test virus came through so something isnt happening :)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 2:24 am    Post subject: Reply with quote

UPDATE on it not detecting spamassassin.
the following is ripped from another thread im putting it here to save on the jumping around

Quote:

I had the same issue - finally found a forum thread that mentioned it.
Change your spamd configuration file (mine is /etc/conf.d/spamd) to use the --siteconfigpath option instead of the -C option
I changed mine from:


Code:


SPAMD_OPTS="-a -c -C /etc/mail/spamassassin/local.cf"


to:


Code:


SPAMD_OPTS="-a -c --siteconfigpath=/etc/mail/spamassassin/local.cf"


and it now works (finally!)

then emerge qmail-scanner


So now qmail-scanner detects spamassassin.
Now i need to get qmail-scanner scanning my stinkin emails! :)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 4:11 am    Post subject: Reply with quote

GOT IT hope this helps some other blind soul.

make sure you comment out :allow line in tcp.smtp like it says :)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 4:25 am    Post subject: Reply with quote

never mind .... now no mail seems to be getting delivered. heh at least i blocked the virii :)
Back to top
View user's profile Send private message
BlackCat73
n00b
n00b


Joined: 11 Sep 2004
Posts: 15
Location: VIC, Australia

PostPosted: Tue Sep 21, 2004 5:29 am    Post subject: Reply with quote

This thread helped me tremendously during the installation of my e-mail server, now it can send/receive mails. And SMTP AUTH works too. :)

I managed to install qmailadmin and squirrelmail as well but when I tried to login via squirrelmail page with the full e-mail address admin@somehost.org I get an error message
Code:

ERROR:
ERROR : Connection dropped by imap-server

and it just stops there.

I'm using the correct username, correct password because I can send and recieve e-mail using this account via outlook.

Any ideas why it doesn't work? Couple of things from the HOWTO that I have not done, 1.) the SSL cert creation and vpopmail plugin for squirrelmail. The reason why I haven't done that is because the HOWTO says that using vpopmail account to run apache2 is a potential security risk.

Do I need those elements to allow my virtual domain users to check their e-mail via squirrel?

Help is very much appreciated.

Thank you.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 5:38 am    Post subject: Reply with quote

I got the same exact error but it had to do with vpopmail.conf file i forgot to put the password for the database in there. you may want to check your squirrelmail config and make sure its set to localhost.

oh your other question. no you dont need vpopmail plugin. basically it will allow you to have mail.domain1.com and mail.domain2.com and webmail.domain3.com ect ...
and your users can goto whatever domain and just enter thier username instead of full email.
so jim@domain1.com could goto the url mail.domain1.com or domain1.com/mail ect ... you get the picture and then just enter jim for username ... note that only works with squirrelmail. for all other mail clients you need to specify the entire email for the username. sometimes its best not to confuse users. .... one other cool thing that plugin allows you to do is have different graphics appear instead of the squirrel for each domain depending on what domain they visit.
you can see an example here mail.actionphotousa.com vs mail.jordanphotography.com
:)
anyone have any clues why now none of my mail is getting delivered?
Back to top
View user's profile Send private message
BlackCat73
n00b
n00b


Joined: 11 Sep 2004
Posts: 15
Location: VIC, Australia

PostPosted: Tue Sep 21, 2004 6:28 am    Post subject: Reply with quote

Hi nianderson,

Thank you very much for the very fast response. Sadly, changing the servername to localhost didn't solve my problem. What log files can I open to find out what's going on and where is the file located?

I saw the webite you posted, and I must day, damn! That looks very very nice. Now I'm tempted to install the plug-in :P hehehehe

What kind of security risk am I going to face by installing this plug-in? Is it severe? Can something be done to overcome or minimise it?

Thanks.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 6:45 am    Post subject: Reply with quote

just makin sure ... you can use imap to check mail with other mail clients right? like kmail and the like.
logs?
you chould check apache log i suppose maybe imap log if its seperate .... but i seem to remember i saw stuff in the current file ... i use metalog though
Back to top
View user's profile Send private message
slaapkop
n00b
n00b


Joined: 04 Mar 2004
Posts: 66
Location: Nijmegen

PostPosted: Tue Sep 21, 2004 10:43 am    Post subject: Reply with quote

Hello,

maybe a bit stupid but I 'm asking the same question for the 3th time now.
I currently run Postfix as MTA. I followed the instructions here:

https://forums.gentoo.org/viewtopic.php?t=56633&highlight=howto+postfix

It works well, but I want to learn about other MTA's as well. and I hear alot of good things about Qmail. And I 'm f****** bored I broke a leg 2 weeks ago, so i want to play around with my server, plenty of time now.

Is it eneogh to just do an 'emerge -C postfix' to delete my current MTA properties?(thigs like imap squirrelmail settings and stuff.....) I don't want to install my installation al over again if i mess up. This can't be a to hard question and if it is a stupid one, sorry... Bit if some can give me one I can get to work..

Thanks.
Back to top
View user's profile Send private message
BlackCat73
n00b
n00b


Joined: 11 Sep 2004
Posts: 15
Location: VIC, Australia

PostPosted: Tue Sep 21, 2004 10:58 am    Post subject: Reply with quote

Hi nianderson,

Actually I have never tested the IMAP server from a normal client. So after I read your post, I went to test it and true enough, I failed to connect.

The error message from outlook is
Code:

Task 'Synchronizing Hierarchy...' reported error (0x800CCC0E) : 'Outlook is unable to download folder (null) from the IMAP e-mail server for account somehost.org (IMAP). Error: Unable to connect to the server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).'


At least I found my starting point, do you have tips and trick regarding courier-imap? There aren't much discussion about the IMAP server in this thread.

Thanks again.
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Tue Sep 21, 2004 11:59 am    Post subject: Reply with quote

this message I got from Outlook 2003 "only" one beautiful day in my office, and after charming morning "one and only" help was to delete that IMAP account from Outlook and setting it again.....

don´t know if it helps again in that case.
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 12:40 pm    Post subject: Reply with quote

BlackCat73 check and make sure you have authvchkpw spelled right. :) also check your vpopmail.conf and make sure you havea working pasword in there and that your using the correct format
Back to top
View user's profile Send private message
tagore
Tux's lil' helper
Tux's lil' helper


Joined: 24 Oct 2002
Posts: 77
Location: Uruguay

PostPosted: Tue Sep 21, 2004 1:08 pm    Post subject: Reply with quote

thx for the grat how to, work fine for me.
Cheers.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 1:24 pm    Post subject: Reply with quote

I got it workin now for real this time :)

[EDIT]
well i had it :P
mysterously stopped workin sometime last night. so im thinkin maybe a permissions thing?
dont know. anyone have any ideas?
[/EDIT]

couple questions again:

what happens when there is a virus though? no notification? can i turn some sort of notification on? if so how?
Back to top
View user's profile Send private message
BlackCat73
n00b
n00b


Joined: 11 Sep 2004
Posts: 15
Location: VIC, Australia

PostPosted: Tue Sep 21, 2004 2:16 pm    Post subject: Reply with quote

Wohoooo :D it finally works! I was checking /var/mail/log/current
and saw this entry in the log file
Code:

Sep 21 20:54:58 [imapd] /usr/lib/courier-imap/authlib/authvcheckpw: No such file or directory

Then I start checking couple of files, the one responsible for the error above was an entry in the file /etc/courier-imap/imapd I had an entry that read
Code:

AUTHMODULES="authvcheckpw"

which is obviously wrong, so I had that corrected to
Code:

AUTHMODULES="authvchkpw"
and everything fell into place and squirrel works beautifully but outlook still refuses to receive/send mail from IMAP server (I'll debug that later) but at least the webmail was working :) hehehe

Thanks again nianderson
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Tue Sep 21, 2004 2:38 pm    Post subject: Reply with quote

hehe no problem i has similar error ... i had authvckpw missing the h took me like 45 minutes to find it super pita
Back to top
View user's profile Send private message
f1n4rf1n
n00b
n00b


Joined: 30 May 2004
Posts: 46
Location: Osnabrueck [ger]

PostPosted: Wed Sep 22, 2004 9:12 am    Post subject: Reply with quote

Quote:
but i still need your help... i have a minor problem here. Everytime a tried to smtp-auth from an external network, the mail client delay exactly 5 seconds to auth and then the message is accepted and sended. This is what i have in my mail.log files everytime i tried:


Sep 18 18:11:24 mail vpopmail[2479]: vchkpw-smtp: password fail fredo@hold***.com:***.**.61.171
Sep 18 18:11:29 mail vpopmail[2481]: vchkpw-smtp: (PLAIN) login success fredo@hold***.com:***.**.61.171
Sep 18 18:11:48 mail vpopmail[2479]: vchkpw-smtp: password fail fredo@hold***.com:***.**.61.171
Sep 18 18:11:53 mail vpopmail[2481]: vchkpw-smtp: (PLAIN) login success fredo@hold***.com:***.**.61.171


Same here...

Code:

QMAIL_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
[ -z "${QMAIL_SMTP_POST}" ] && QMAIL_SMTP_POST=/bin/true
#QMAIL_SMTP_CHECKPASSWORD="/bin/cmd5checkpw"

QMAIL_SMTP_CHECKPASSWORD="/var/vpopmail/bin/vchkpw"

QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"


any ideas?
Back to top
View user's profile Send private message
petterg
Guru
Guru


Joined: 25 Mar 2004
Posts: 500
Location: Oslo, Norway

PostPosted: Wed Sep 22, 2004 10:33 am    Post subject: Reply with quote

f1n4rf1n wrote:
Quote:
Sep 18 18:11:24 mail vpopmail[2479]: vchkpw-smtp: password fail fredo@hold***.com:***.**.61.171
Sep 18 18:11:29 mail vpopmail[2481]: vchkpw-smtp: (PLAIN) login success fredo@hold***.com:***.**.61.171
Sep 18 18:11:48 mail vpopmail[2479]: vchkpw-smtp: password fail fredo@hold***.com:***.**.61.171
Sep 18 18:11:53 mail vpopmail[2481]: vchkpw-smtp: (PLAIN) login success fredo@hold***.com:***.**.61.171


Same here...


I also have a delay when sending mail from an external IP. Seems like the delay is not caused by the failing vchkpw-smtp, but by spamassassin. Qmail-scanner is checking checking all mail from external ip's, nomatter if they are sent with smtp-auth or not.
Back to top
View user's profile Send private message
1admfle
n00b
n00b


Joined: 22 Sep 2004
Posts: 1

PostPosted: Wed Sep 22, 2004 2:35 pm    Post subject: Problem with SMTP-AUTH Reply with quote

Hi!!

Seems that like many people over there, i'm having headache with SMTP-AUTH.

I'm using qmail-1.03-r13 with vpopmail-5.4.6-r1 but no spam / virus handling.
My email client is outlook / oulook express
My network is as follows :
A : lan side
B : dmz where my mail server is
C : Internet (public ip translated to B network tcp/smtp)

192.168.A.0 || 192.168.B.0 || Internet

SMTP-AUTH is working when sending mail from A network. (I can see a vchkpw-smtp into vpopmail logs). (PLAIN AUTH)

SMTP-AUTH fails when connecting from Internet (nothing into vpopmail logs)... and sent mail gives me the famous unable to relay (not in rcpthosts)

I don't understand why it works from A and not from Internet...
For tcp.smtp stuffs (in /etc) I just have a single line in tcp.smtpd :
:allow

I'm working on this for 6 hours, without finding anything...
Last, I have a lot of"aborted connection errors" messages in mysqld.err. But it seems it's vchkpw not closing properly the connection... a small issue I guess

Any idea ?
Thanks !!!!!
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Wed Sep 22, 2004 4:23 pm    Post subject: Reply with quote

OK looks like my nightly crons or something jacks up permissions.
cause i cant get mail this morning until i do

Code:

chown qscand:qscand /var/spool/qmailscan/qmail-scanner-queue-version.txt


now im not sure that thats the correct ownership i just know it works. anyone know whats wrong and why every morning i cant recieve mail because of qmailscanner?

THANKS
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Wed Sep 22, 2004 4:27 pm    Post subject: Reply with quote

you didn´t pay atention, scroll back to 12th list and read my post...

nianderson wrote:
OK looks like my nightly crons or something jacks up permissions.
cause i cant get mail this morning until i do

Code:

chown qscand:qscand /var/spool/qmailscan/qmail-scanner-queue-version.txt


now im not sure that thats the correct ownership i just know it works. anyone know whats wrong and why every morning i cant recieve mail because of qmailscanner?

THANKS

_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Wed Sep 22, 2004 4:57 pm    Post subject: Reply with quote

stripe wrote:
you didn´t pay atention, scroll back to 12th list and read my post...


I did pay attention :) i am just either stupid or it dosnt seem to be working for me

Code:

root@bigdaddy etc # chown qmaild:nofiles -R /var/spool/qmailscan
root@bigdaddy etc # setuidgid qmaild /var/qmail/bin/qmail-scanner-queue -g
perlscanner: generate new DB file from /var/spool/qmailscan/quarantine-attachments.txt
X-Qmail-Scanner-1.23st:[] cannot open for write /var/spool/qmailscan/quarantine-attachments.db.tmp - Permission denied
root@bigdaddy etc # setuidgid qmaild /var/qmail/bin/qmail-scanner-queue -z
cannot write to /var/spool/qmailscan/qmail-scanner-queue-version.txt.tmp - Permission denied at /var/qmail/bin/qmail-scanner-queue.pl line 1981.
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Wed Sep 22, 2004 5:13 pm    Post subject: Reply with quote

you must chown whole directory /var/spool/qmailscan to qmaild:nofiles recursively coz ebuild changes it without noticing you about that...
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
nianderson
Guru
Guru


Joined: 06 May 2003
Posts: 369
Location: Lawrence, KS

PostPosted: Wed Sep 22, 2004 5:36 pm    Post subject: Reply with quote

Isnt that what happens when i do
Code:

chown qmaild:nofiles -R /var/spool/qmailscan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 12, 13, 14 ... 23, 24, 25  Next
Page 13 of 25

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum