Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HOWTO: qmail vpopmail qmail-scanner courier squirrelmail
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 15, 16, 17  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
nianderson
Guru
Guru


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

PostPosted: Sun Mar 07, 2004 3:04 pm    Post subject: Reply with quote

http://www.gentoo.org/doc/en/qmail-howto.xml

there is that too
Back to top
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Sun Mar 07, 2004 3:07 pm    Post subject: Reply with quote

nianderson wrote:
http://www.gentoo.org/doc/en/qmail-howto.xml

there is that too


nice, thanks. i have never seen this guide before. ive used life with qmail, this thread and one other that was written by someone on these boards. ill try this one because i actually would prefer to use horde.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Sun Mar 07, 2004 3:26 pm    Post subject: Reply with quote

let me know how it goes .... it uses vpopmail 5.4 so interested to know if it has a fix for that mysql is gone error.
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Mon Mar 08, 2004 1:44 am    Post subject: Re: HOWTO: qmail vpopmail qmail-scanner courier squirrelmail Reply with quote

FOUND ANSWER UPTHREAD
it does not exist but did not work until renamed .conf as thats what /etc/init.d/spamd was looking for.


question on step 5 anyone else notice that /etc/conf.d/spamd.conf does not exist?
at least with the current stable version 2.63
its /etc/conf.d/spamd


also when i start spamd i get
Code:

* Starting spamd...
unix dgram connect: No such file or directory at /usr/bin/spamd line 282  [ ok ]


sabrex wrote:

5) install f-prot and Mail-SpamAssassin. they must be running before installing qmail-scanner.

Code:
> emerge f-prot Mail-SpamAssassin
> nano -w /etc/conf.d/spamd.conf
  SPAMD_OPTS="-d -u vpopmail -v -x -C /etc/mail/spamassassin/local.cf"
> rc-update add spamd default
> /etc/init.d/spamd start

You'll want to set up a cron.daily job to update the f-prot definitions automatically:

> nano -w /etc/cron.daily/virus-update.cron
#!/bin/bash
/opt/f-prot/check-updates.pl -cron -quiet
> chmod 755 /etc/cron.daily/virus-update.cron
> crontab -e
# min hour day month weekday command
0 1 * * * /etc/cron.daily/virus-update.cron

Now to set up spam processing rules:

> nano -w /etc/mail/spamassassin/local.cf
required_hits  5.0
rewrite_subject  1
subject_tag  *****SPAM*****
report_safe  1
report_header  1
use_bayes  1
auto_learn  1
skip_rbl_checks  0
use_razor2  1
use_dcc  1
use_pyzor  1
ok_languages  all
ok_locales  all



Last edited by nianderson on Mon Mar 08, 2004 2:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 260
Location: Odenton, MD

PostPosted: Mon Mar 08, 2004 3:13 am    Post subject: Reply with quote

Okay. . .I cleaned, then re-emerged all the packages. . .

Everything goes great now. I can create a user, create domains, and otherwise set up the post office.

But I can't read any mail. After setting the debug up for POP3D, this is what I get in my logs:
Code:

Mar  7 22:06:54 [pop3d] Connection, ip=[192.168.0.118]
Mar  7 22:06:54 [pop3d] LOGIN: DEBUG: ip=[192.168.0.118], command=CAPA
Mar  7 22:07:05 [pop3d] LOGIN: DEBUG: ip=[192.168.0.118], command=USER
Mar  7 22:07:05 [pop3d] LOGIN: DEBUG: ip=[192.168.0.118], command=PASS
Mar  7 22:07:05 [pop3d] LOGIN: DEBUG: ip=[192.168.0.118], username=xxxx
Mar  7 22:07:05 [pop3d] LOGIN: DEBUG: ip=[192.168.0.118], password=xxxxxxxxxxxxxxxxxxxx
Mar  7 22:07:05 [pop3d] could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) with database
Mar  7 22:07:05 [pop3d] could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES)
Mar  7 22:07:10 [pop3d] LOGIN FAILED, ip=[192.168.0.118]


But, this is my vpopmail.conf file that I'm telling it to access the DB with:
Code:
<snip># Note:
#   The value of host may be either a hostname or an IP address.
#   If host is 'localhost', then sockets (Unix) or named pipes (Windows)
#   will be used instead of TCP/IP to connect to the server.
# Read-only DB
localhost|0|dbusername|pazzwordz|dbname
# Write DB
localhost|0|dbusername|pazzwordz|dbname


What the heck is going on?? I never told it to try to log onto the db as root at any time. Does the latest vpopmail that works with qmailadmin have a mind of it's own and just log on as whatever it feels like?
~
~
_________________
It's fun to take a trip
Put acid in your veins
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Mon Mar 08, 2004 4:20 am    Post subject: Reply with quote

did we find out if this was necessary for mysql instilations

JeffreyCentex wrote:

QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`

This will allow authenticated SMTP... (I'm not sure whether this is required or not for those of you using MySQL)...
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Mon Mar 08, 2004 6:47 am    Post subject: Reply with quote

check your /etc/hosts file
you need to add your hostname to the line so if your box is named mail your hosts file would need to be at least like this

Code:

127.0.0.1       localhost       mail



aahz wrote:
During the merge of f-prot and SpamAssasin, I get a failure on compilcation of one of the dependencys.

Code:
robot/ua-get..........HTTP Server terminated
robot/ua-get..........FAILED tests 1-3, 5, 7
        Failed 5/8 tests, 37.50% okay
robot/ua..............HTTP Server terminated
robot/ua..............FAILED tests 1-3, 5, 7
        Failed 5/7 tests, 28.57% okay
local/autoload-get....ok
local/autoload........ok
local/get.............ok
local/http-get........HTTP Server terminated
local/http-get........NOK 7Can't call method "is_redirect" on an undefined value at local/http-get.t line 216, <DAEMON> line 1.
local/http-get........dubious
        Test returned status 115 (wstat 29440, 0x7300)
DIED. FAILED tests 1-19
        Failed 19/19 tests, 0.00% okay
local/http............HTTP Server terminated
local/http............NOK 7Can't call method "is_redirect" on an undefined value at local/http.t line 189, <DAEMON> line 1.
local/http............dubious
        Test returned status 115 (wstat 29440, 0x7300)
DIED. FAILED tests 1-18
        Failed 18/18 tests, 0.00% okay
local/protosub........ok
Failed Test      Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
local/http-get.t  115 29440    19   30 157.89%  1-19
local/http.t      115 29440    18   28 155.56%  1-18
robot/ua-get.t                  8    5  62.50%  1-3 5 7
robot/ua.t                      7    5  71.43%  1-3 5 7
Failed 4/28 test scripts, 85.71% okay. 47/388 subtests failed, 87.89% okay.
make: *** [test] Error 255

!!! ERROR: dev-perl/libwww-perl-5.76 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! (no error message)


Can anyone help me here, the error message is pretty cryptic and I don't know what it's saying.
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Mon Mar 08, 2004 1:20 pm    Post subject: nianderson Reply with quote

read up to my posts, I have the exact same problem. The issue is certainly with vpopmail 5.4

It is trying to connect to the db as root@localhost. It's obviously not reading the /etc/vpopmail.conf file where I have the username specified to be vpopmail with secret pass.

The only reason for upgrading to 5.4 is the hope it will fix the SMTP-AUTH problems. Everything else works fine for me (fprot, spamassassin, pop3d, imap, squirrelmail).

:?: Since SMTP-Auth is broken, anyone know how to get pop before smtp to work?

Thanks,
Skywacker
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Mon Mar 08, 2004 1:22 pm    Post subject: Reply with quote

I did the below, it did not fix smtp-auth for mysql setups.

nianderson wrote:
did we find out if this was necessary for mysql instilations

JeffreyCentex wrote:

QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`

This will allow authenticated SMTP... (I'm not sure whether this is required or not for those of you using MySQL)...
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Mon Mar 08, 2004 1:31 pm    Post subject: Reply with quote

so does anyone have smtp auth with mysql workin by this document?
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Mon Mar 08, 2004 1:57 pm    Post subject: Re: nianderson Reply with quote

Skywacker wrote:
read up to my posts, I have the exact same problem. The issue is certainly with vpopmail 5.4

It is trying to connect to the db as root@localhost. It's obviously not reading the /etc/vpopmail.conf file where I have the username specified to be vpopmail with secret pass.




did you check your /etc/vpopmail.conf file?

it appears the format changed i had merged an earlier one first and thats why i could not connect to the database.
here is what my vpopmail.conf looks like
Code:
# MYSQL CONNECTION SETTINGS FOR VPOPMAIL
#
# Line 1 defines the connection to use for database reads,
# Line 2 defines the connection to use for database updates/writes.
#
# If you omit line 2, then the same settings will be
# used for both read and write.
#
# settings for each line:
# host|port|user|password|database
#
#
# Note:
#   The value of host may be either a hostname or an IP address.
#   If host is 'localhost', then sockets (Unix) or named pipes (Windows)
#   will be used instead of TCP/IP to connect to the server.
# Read-only DB
localhost|0|vpopmail|password|vpopmail
# Write DB
localhost|0|vpopmail|password|vpopmail
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Mon Mar 08, 2004 2:01 pm    Post subject: Reply with quote

Yes I had. Perhaps I will try again if you got it working. I'm going after pop-before-smtp for now until someone has success with smpt-auth. This servers in production and I have a lot of people travelling this week. I need something working fast besides Squirrelmail.

-Sky
Back to top
View user's profile Send private message
blubbi
Guru
Guru


Joined: 27 Apr 2003
Posts: 555
Location: Halle (Saale), Germany

PostPosted: Mon Mar 08, 2004 3:13 pm    Post subject: MAILDROP maildirsize Reply with quote

ATTENTION:

in the scriptfile /etc/mail/maildrop is .maildirsize spezified.
But the newest build vrom vpopmail, courier-IMAP, squirrelmail use maildir instead of .maildirsize.

My installed packages:
Code:

root@xyz$ ACCEPT_KEYWORDS="~x86" emerge -p vpopmail qmail qmailadmin squirrelmail maildrop

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] net-mail/vpopmail-5.4.0_rc1
[ebuild   R   ] net-mail/qmail-1.03-r15
[ebuild   R   ] net-mail/qmailadmin-1.2.0_rc2-r1
[ebuild     U ] net-mail/squirrelmail-1.4.2-r3 [1.4.2-r1]
[ebuild   R   ] net-mail/maildrop-1.5.3-r1
[ebuild   R   ] net-mail/qmail-scanner-1.20



So change every .maildirsize in /etc/mail/maildrop to maildirsize

here the lines I am talking about:
Code:
##
# create the maildirsize file if it doesn't already exist
# (could also be done via "deliverquota user@dom.com 10MS,1000C)
##
`test -e $VHOME/.maildir/maildirsize`
if( $RETURNCODE == 1)
{
        `/var/vpopmail/bin/vuserinfo -Q $EXT@$HOST`

        `test -e "$VHOME/.maildir/maildirsize"`
   if ( $RETURNCODE == 0 )
   {
#        `/bin/touch $VHOME/.maildir/maildirsize`
        `/usr/sbin/chown vpopmail:vpopmail $VHOME/.maildir/maildirsize`
        `/bin/chmod 640 $VHOME/.maildir/maildirsize`
   }
}


Code:
##
# Set MAILDIRQUOTA. If this isn't set, maildrop and deliverquota
# will not enforce quotas for message delivery.
#
# I find this much easier than creating yet another config file
# to store this in. This way, any time the quota is changed in
# vpopmail, it'll get noticed by maildrop immediately.
##

MAILDIRQUOTA=`/usr/bin/head -n1 $VHOME/.maildir/maildirsize`
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Mon Mar 08, 2004 5:19 pm    Post subject: Reply with quote

so no one has smtp-auth working with vpopmail???
Back to top
View user's profile Send private message
blubbi
Guru
Guru


Joined: 27 Apr 2003
Posts: 555
Location: Halle (Saale), Germany

PostPosted: Mon Mar 08, 2004 10:50 pm    Post subject: Reply with quote

seems so ..... I am working on that .... reading articles in google, asking in IRC ... etc etc ... nothing helpt up to now
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Tue Mar 09, 2004 12:21 am    Post subject: Reply with quote

heh love it when the howtos dont work ;) think after we get it all working agin we may have to fork a new thread to clean up the mess :P
Back to top
View user's profile Send private message
ARC2300
Apprentice
Apprentice


Joined: 30 Mar 2003
Posts: 260
Location: Odenton, MD

PostPosted: Tue Mar 09, 2004 12:40 am    Post subject: Reply with quote

nianderson wrote:
heh love it when the howtos dont work ;) think after we get it all working agin we may have to fork a new thread to clean up the mess :P


No kidding.

Everything works perfectly but the logging in part. :(

I've checked, and the mail gets sent, goes into the correct user's box. I just can't log in to read it. :(
_________________
It's fun to take a trip
Put acid in your veins
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Tue Mar 09, 2004 12:46 am    Post subject: Reply with quote

arch you have smtp-auth working?
ive had it sending mail with out auth but not with auth


http://www.mail-archive.com/vchkpw@inter7.com/msg16232.html this may help someone smarter than I

looks like with new versions the domain needs to be left off the smtp auth config part
Back to top
View user's profile Send private message
nianderson
Guru
Guru


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

PostPosted: Tue Mar 09, 2004 1:14 am    Post subject: Reply with quote

on another note it seems that im having problems with qmail-scanner

gettting this error when sending mail

qq temporary problem (#4.3.0)

thats with no auth
Back to top
View user's profile Send private message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Tue Mar 09, 2004 1:41 am    Post subject: Reply with quote

nianderson wrote:
qq temporary problem (#4.3.0) thats with no auth


That is a qmail error, so probably nothing to do with qmail-scanner. You may have a queue problem. It has happened to me once. Emerge or download a qmail queue fixing utility (there are a few) and see if that resolves your problem.

View the qmail log realtime in a window whilst you're testing with

Code:
tail -f /var/log/qmail/qmail-smtpd/current &


Also viewing the qmail-scanner log realtime helps too.
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Tue Mar 09, 2004 2:05 am    Post subject: Reply with quote

ARC2300 wrote:
nianderson wrote:
heh love it when the howtos dont work ;) think after we get it all working agin we may have to fork a new thread to clean up the mess :P


No kidding.

Everything works perfectly but the logging in part. :(

I've checked, and the mail gets sent, goes into the correct user's box. I just can't log in to read it. :(


Arc,
sounds like you have maildir issues. Keep in mind that some apps seem to be configured for mail to be in Maildir while others are using .maildir. There's a script in ~vpopmail/bin that fixes the issue by moving all Maildir's to .maildir and then making a link from Maildir to .maildir. Make sure you read the complete thread and check you /var/log/messages for vpopmail mail logging in problems. If youre using vdomains/vusers, make sure your username is the complete email address.

-Sky
Back to top
View user's profile Send private message
Skywacker
n00b
n00b


Joined: 23 Jan 2004
Posts: 72
Location: Missouri

PostPosted: Tue Mar 09, 2004 2:07 am    Post subject: Reply with quote

I tried doing what was suggested in the /var/qmail/control/conf-smtpd and conf-pop3d to enable pop-before-smtp but it didn't work.

Does anyone have this working?

-Skywacker
Back to top
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Tue Mar 09, 2004 5:00 am    Post subject: Reply with quote

nianderson wrote:
let me know how it goes .... it uses vpopmail 5.4 so interested to know if it has a fix for that mysql is gone error.


already having simple troubles right form the beginning. not sure what the issue here is, could be dns on my end.

http://www.gentoo.org/doc/en/qmail-howto.xml

one thing that is missing is:

Code:

Code Listing 2.5: Test delivery service
 
# ssh vapier@localhost
# maildirmake

 


maildirmake requires a name after the command, so i used:

Code:

maildirmake Maildir


simple enough, then the document goes on to use mutt for testing local and in that arrises a somewhat commonly known problem where mutt complains if there are missing dirs in the ~./maildir/ directory which are "new, tmp and cur" so that fixed that.

however when i send myself some test mails locally i get errors in the logs as follows:

Code:

>cat /var/log/qmail/qmail-send/current

return:

@40000000404cd9a20a910654 status: local 0/10 remote 0/20
@40000000404cdcf23666f6bc new msg 225859
@40000000404cdcf2366721b4 info msg 225859: bytes 267 from <me@my.domain.com> qp 2811 uid 1000
@40000000404cdcf239d9a394 starting delivery 1: msg 225859 to local root@my.domain.com
@40000000404cdcf239dd1e34 status: local 1/10 remote 0/20
@40000000404cdcf311afb3cc new msg 225858
@40000000404cdcf311c4e594 info msg 225858: bytes 383 from <me@my.domain.com> qp 2814 uid 200
@40000000404cdcf3197305b4 starting delivery 2: msg 225858 to local me@my.domain.com
@40000000404cdcf3197330ac status: local 2/10 remote 0/20
@40000000404cdcf31973404c delivery 1: success: did_0+1+0/qp_2814/
@40000000404cdcf3197357bc status: local 1/10 remote 0/20
@40000000404cdcf31973675c end msg 225859
@40000000404cdcf3204e7454 delivery 2: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/
@40000000404cdcf3204ea334 status: local 0/10 remote 0/20


then it just keeps repeating that basically and no mail shows up locally when i check. also it gets to the point in the logs where it just says bounce/triple bounce and user has reached quota.

btw, if you think this 'howto thread' is complicated.. take a look at this beast of a howto:

https://forums.gentoo.org/viewtopic.php?t=1085

i think im going to have nightmares after looking at this one.
Back to top
View user's profile Send private message
blubbi
Guru
Guru


Joined: 27 Apr 2003
Posts: 555
Location: Halle (Saale), Germany

PostPosted: Tue Mar 09, 2004 8:32 am    Post subject: Reply with quote

nianderson wrote:
heh love it when the howtos dont work ;) think after we get it all working agin we may have to fork a new thread to clean up the mess :P


I'll write one. With all the expierience I have made. It will nearly cover everything menthioned in this howto.

But first off all I'll write it down in a siple txt file on the web. If I finished, I would appreciate it if someone would test this on a fresh install bevore I post it here.

I'll post the URL to my HOWTO in this thread.
Back to top
View user's profile Send private message
blubbi
Guru
Guru


Joined: 27 Apr 2003
Posts: 555
Location: Halle (Saale), Germany

PostPosted: Tue Mar 09, 2004 8:33 am    Post subject: Reply with quote

nianderson wrote:
heh love it when the howtos dont work ;) think after we get it all working agin we may have to fork a new thread to clean up the mess :P


I'll write one. With all the expierience I have made. It will nearly cover everything menthioned in this howto.

But first off all I'll write it down in a siple txt file on the web. If I finished, I would appreciate it if someone would test this on a fresh install bevore I post it here.

I'll post the URL to my HOWTO in this thread.
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 ... 7, 8, 9 ... 15, 16, 17  Next
Page 8 of 17

 
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