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 ... 8, 9, 10 ... 23, 24, 25  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
flashingcurser
n00b
n00b


Joined: 25 Mar 2004
Posts: 34

PostPosted: Mon Jul 19, 2004 4:10 am    Post subject: Reply with quote

Well with hours of screwing aroung with no real direction hehe -- I have managed to get the thing to SEND mail.

Now the problem is recieving mail--I get no errors sending to my address (from yahoo) and get no errors recieving in outlook -- The mail disapears, poof lol

Can anyone point me in the right direction?


Oh by the way maildir was in use flags--re-emerged with ~x86 and I still have the same problem -- anyone using a bash script that will automate the symlinks?
Back to top
View user's profile Send private message
flashingcurser
n00b
n00b


Joined: 25 Mar 2004
Posts: 34

PostPosted: Mon Jul 19, 2004 4:19 am    Post subject: Reply with quote

Oh and one more thing--- the only thing that seemed to make any difference is when I started messing with the files in:

/etc/tcprules.d

Can anyone with a working set up check the files in there and tell me what you have set up in there? there are several .cdb files in there
Back to top
View user's profile Send private message
karoto
n00b
n00b


Joined: 22 Dec 2003
Posts: 37

PostPosted: Mon Jul 19, 2004 7:14 pm    Post subject: i can't install qmail-scanner Reply with quote

Guyz ... great tutors but i have a seriously problem over there :(

i am at the step of qmail-scanner installation and look what i get

Code:

root@patataki / # id
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video)


Code:

root@patataki / # emerge qmail-scanner
Calculating dependencies ...done!
>>> emerge (1 of 1) net-mail/qmail-scanner-1.16-r2 to /
>>> md5 src_uri ;-) qmail-scanner-1.16.tgz
>>> Unpacking source...
>>> Unpacking qmail-scanner-1.16.tgz to /var/tmp/portage/qmail-scanner-1.16-r2/work
 * Replacing obsolete head/tail with POSIX compliant ones
>>> Source unpacked.
Building Qmail-Scanner 1.16...

Sorry, but this must be run as root, as several operations require - well
root access :-)


yes: standard output: Broken pipe
yes: write error

!!! ERROR: net-mail/qmail-scanner-1.16-r2 failed.
!!! Function src_compile, Line 39, Exitcode 1
!!! ./configure failed!



How about that? i have already search all the forums about this , no answer..i wonder if is there a solution couse i wanna complete this tutorial :(
Back to top
View user's profile Send private message
karoto
n00b
n00b


Joined: 22 Dec 2003
Posts: 37

PostPosted: Mon Jul 19, 2004 9:55 pm    Post subject: Reply with quote

Nevermind guyz i found it..
i had the userpriv enabled at /etc/make.conf
so that's why it didn't compile it as root..
Back to top
View user's profile Send private message
Gweniviere
n00b
n00b


Joined: 13 Sep 2002
Posts: 47
Location: Minneapolis, MN USA

PostPosted: Mon Jul 19, 2004 10:34 pm    Post subject: Reply with quote

Hello :)

First let me begin by thanking everyone that has contributed to this HOWTO. It has been immeasurably helpful to me.

Now, onto my problem. I had a qmail/vpopmail/qmailscanner/qmailadmin setup that was working just wonderfully. It was up and running for over a month. However, due to a power outage I had to down the server this morning. When the server came back up, no one was able to authenticate and recieve mail.

The only message that is out of the ordinary is this...
Code:

Jul 19 17:25:52 topflite pop3d-ssl: Connection, ip=[1.2.3.4]
Jul 19 17:25:57 topflite pop3d-ssl: LOGIN FAILED, ip=[1.2.3.4]
Jul 19 17:25:57 topflite pop3d-ssl: Disconnected, ip=[1.2.3.4]


I've been fiddling with config files all day and this is what I discovered. If I have the old style username/password information in the /etc/vpopmail.conf file
Code:

#####################  OLD VERSION  #####################
MYSQL_UPDATE_SERVER      localhost
MYSQL_UPDATE_USER      vpopmail
MYSQL_UPDATE_PASSWD      secret

MYSQL_READ_SERVER      localhost
MYSQL_READ_USER         vpopmail
MYSQL_READ_PASSWD      secret


then people are able to authenticate and pickup mail. This is great except that all mail that is delivered while the file is in this format get's lost somewhere and is never delivered.

Now if the /etc/vpopmail.conf file is in the 'new style'
Code:

#####################  NEW VERSION  #####################
# Read DB
localhost|0|vpopmail|secret|vpopmail
# Write DB
localhost|0|vpopmail|secret|vpopmail

people are unable to pickup their mail, however it is delivered to the /var/vpopmail/domain/mydomail/gwen/.maildir/new with no problems but the authentication error comes back when people to get their email.

I should also note that is seems as if spamd is working correctly in either case..
Code:

Jul 19 17:37:30 topflite spamd[13565]: connection from localhost [127.0.0.1] at port 33792
Jul 19 17:37:30 topflite spamd[18836]: checking message <q5OC108$5OCbuwyNn3w-Uz9UzC@dpe.ImANaughtySpammer.com> for qmailq:89.
Jul 19 17:37:31 topflite spamd[18836]: identified spam (8.2/5.0) for qmailq:89 in 1.2 seconds, 6733 bytes.


It would seem to me that different portions of the system are at differing versions and this is what causes the strange behaviour with the logging into mysql. That's just my guess. Does anyone have any idea what I might do to fix this?

Thanks in advance for any assistance.
Gwen

p.s. I don't know why I protected the identity of that spammer. Oh well.
Back to top
View user's profile Send private message
flashingcurser
n00b
n00b


Joined: 25 Mar 2004
Posts: 34

PostPosted: Tue Jul 20, 2004 1:33 am    Post subject: Reply with quote

Is "secret" really your password to the database, or has it been changed?
Back to top
View user's profile Send private message
Gweniviere
n00b
n00b


Joined: 13 Sep 2002
Posts: 47
Location: Minneapolis, MN USA

PostPosted: Tue Jul 20, 2004 1:38 am    Post subject: Reply with quote

flashingcurser wrote:
Is "secret" really your password to the database, or has it been changed?


It's been changed.

Gwen
Back to top
View user's profile Send private message
Gweniviere
n00b
n00b


Joined: 13 Sep 2002
Posts: 47
Location: Minneapolis, MN USA

PostPosted: Tue Jul 20, 2004 5:34 am    Post subject: Reply with quote

Ok, after playing around with it more and turning on the debug messages I am now getting this type of error...

Code:

Jul 20 00:34:01 grip pop3d-ssl: Connection, ip=[192.168.0.69]
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], command=USER
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], command=PASS
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], username=cindy@mydomain.com
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], password=cindy
Jul 20 00:34:01 grip pop3d-ssl: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) with database
Jul 20 00:34:01 grip pop3d-ssl: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES)
Jul 20 00:34:06 grip pop3d-ssl: LOGIN FAILED, ip=[192.168.0.69]


The username/password pair that is displayed in the log are a correct set. (And yes, the password and user name have been changed to protect the innocent :) )

I have no idea where it is picking up root as the login id. Should it not be vpopmail as the user id? That is what is in the /etc/vpopmail.conf file. It's also linked at /var/vpopmail/etc/vpopmail.mysql

Gwen
Back to top
View user's profile Send private message
sdalberg
n00b
n00b


Joined: 20 Jul 2004
Posts: 1

PostPosted: Tue Jul 20, 2004 6:02 pm    Post subject: Reply with quote

Quote:
Ok, after playing around with it more and turning on the debug messages I am now getting this type of error...

Code:

Jul 20 00:34:01 grip pop3d-ssl: Connection, ip=[192.168.0.69]
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], command=USER
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], command=PASS
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], username=cindy@mydomain.com
Jul 20 00:34:01 grip pop3d-ssl: LOGIN: DEBUG: ip=[192.168.0.69], password=cindy
Jul 20 00:34:01 grip pop3d-ssl: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) with database
Jul 20 00:34:01 grip pop3d-ssl: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES)
Jul 20 00:34:06 grip pop3d-ssl: LOGIN FAILED, ip=[192.168.0.69]

[/code]

The username/password pair that is displayed in the log are a correct set. (And yes, the password and user name have been changed to protect the innocent )

I have no idea where it is picking up root as the login id. Should it not be vpopmail as the user id? That is what is in the /etc/vpopmail.conf file. It's also linked at /var/vpopmail/etc/vpopmail.mysql

Gwen


Gwen, not just you, I'm having the same problem... Where is it getting root@localhost from? My guess is that this isn't liking the new format of the /etc/vpopmail.conf

Code:


Jul 20 10:34:58 duff pop3d: Connection, ip=[67.171.42.213]
Jul 20 10:34:58 duff pop3d: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES) with database
Jul 20 10:34:58 duff pop3d: could not connect to mysql update server Access denied for user: 'root@localhost' (Using password: YES)
Jul 20 10:35:03 duff pop3d: LOGIN FAILED, ip=[67.171.42.213]



imapd fails similarly...
Back to top
View user's profile Send private message
Gweniviere
n00b
n00b


Joined: 13 Sep 2002
Posts: 47
Location: Minneapolis, MN USA

PostPosted: Tue Jul 20, 2004 8:17 pm    Post subject: Reply with quote

Well, I'm sorry to report that I was not able to resolve the problem with the root user being used to log into the mysql database.

Instead I shut down the courier and svscan services. Then I removed and reinstalled the qmail, daemontools, ucspi-tcp, courier-imap, qmailscanner and vpopmail packages. I removed the /etc/vpopmail.conf and /etc/tcp.* files. I made a copy of the /var/vpopmail/domains/mydomain.com directory and then removed the /var/qmail and /var/vpopmail directories.

I left the spam, virus, qmailadmin and squirrelmail packages installed.

I then generated new certificates, edited the misc /var/qmail/control and /etc/tcp.* files, ran the qmailscanner script and recreated my domain with vadddomain. Finally I recreated my users with vadduser (by the way adding the domain and users produced errors as they were already in the mysql database) and copied the mydomain.com directory back to /var/vpopmail/domains and started up the the services again and low and behold the system behaved properly. Whew! I was pretty happy about that! :D The entire process took about an hour.

I'd be interested to know if the problem and solution is uncovered to this little gotcha. Anyways, good luck with your setup.

Gwen
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Wed Jul 21, 2004 5:37 am    Post subject: Reply with quote

Gwen,
Have you rebooted your newly installed mail server? Hopefully you don't have the same problem.
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
Gweniviere
n00b
n00b


Joined: 13 Sep 2002
Posts: 47
Location: Minneapolis, MN USA

PostPosted: Wed Jul 21, 2004 6:01 am    Post subject: Reply with quote

Oh I most certainly did. Twice, just to make sure. I sure do not want a repeat of this episode.

Gwen
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Wed Jul 21, 2004 11:24 am    Post subject: Reply with quote

Gweniviere wrote:

Code:

#####################  OLD VERSION  #####################
MYSQL_UPDATE_SERVER      localhost
MYSQL_UPDATE_USER      vpopmail
MYSQL_UPDATE_PASSWD      secret

MYSQL_READ_SERVER      localhost
MYSQL_READ_USER         vpopmail
MYSQL_READ_PASSWD      secret


Code:

#####################  NEW VERSION  #####################
# Read DB
localhost|0|vpopmail|secret|vpopmail
# Write DB
localhost|0|vpopmail|secret|vpopmail


Use them both! (As I've posted 2-3 times earlier in this thread.) In some cases you need to make it:
Code:

#####################  NEW VERSION #####################
# Read DB
localhost|0|vpopmail|secret|vpopmail
# Write DB
localhost|0|vpopmail|secret|vpopmail
#####################  OLD VERSION #####################
MYSQL_UPDATE_SERVER      localhost
MYSQL_UPDATE_USER      vpopmail
MYSQL_UPDATE_PASSWD      secret

MYSQL_READ_SERVER      localhost
MYSQL_READ_USER         vpopmail
MYSQL_READ_PASSWD      secret
Back to top
View user's profile Send private message
Gweniviere
n00b
n00b


Joined: 13 Sep 2002
Posts: 47
Location: Minneapolis, MN USA

PostPosted: Wed Jul 21, 2004 1:15 pm    Post subject: Reply with quote

petterg wrote:

Use them both! (As I've posted 2-3 times earlier in this thread.) In some cases you need to make it:


I tried that. It did not work for me. :(

Gwen
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Fri Jul 23, 2004 9:35 pm    Post subject: Reply with quote

Gweniviere wrote:
petterg wrote:

Use them both! (As I've posted 2-3 times earlier in this thread.) In some cases you need to make it:


I tried that. It did not work for me. :(

Gwen


If you set the mysql password for root to be the same as for vpopmail, does it log in?
Back to top
View user's profile Send private message
Skubidoo
n00b
n00b


Joined: 20 May 2003
Posts: 37

PostPosted: Sat Jul 24, 2004 7:46 pm    Post subject: Reply with quote

I have a question, when I try to establish a pop3 connection it won't let me in.
the log says:

[pop3d] vmysql: can't read settings from /home/vpopmail/etc/vpopmail.mysql

what does this error mean? Access rights to that file seem to be alright.
Back to top
View user's profile Send private message
Skubidoo
n00b
n00b


Joined: 20 May 2003
Posts: 37

PostPosted: Sat Jul 24, 2004 8:08 pm    Post subject: Reply with quote

Ok, I can receive and send email using my account on the host machine (with default user login and mutt). But it won't let me login using Outlook, smtp authentication and pop authentication don't work (which is everything that requires a password). I really tried hard, but I don't see the problem :(.

By the way:
printf "postmaster@wh0rd.org\0postpass\0blah\0" | vchkpw `which id` 3<&0

returns nothing!


Code:

Jul 25 15:56:36 [imapd-ssl] Connection, ip=[127.0.0.1]
Jul 25 15:56:51 [imapd-ssl] LOGIN FAILED, ip=[127.0.0.1]
Jul 25 15:56:53 [imapd-ssl] Unexpected SSL connection shutdown.


the same happens with pop3d-ssl

I did set the authmodulelist to authvchkpw. The passwords I use ARE be correct.

update

problem resolved after reemerging everything with the right USE flags set.


NOW.... everything works, except that I can't download the emails from outside, they stay on the server. What has to be done to do it?


Thx.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Mon Jul 26, 2004 11:01 pm    Post subject: Reply with quote

Skubidoo wrote:
NOW.... everything works, except that I can't download the emails from outside, they stay on the server. What has to be done to do it?


Good thing you solved the first problem while discussing with yourself on the forum :)
Most mail clients (outlook in your case) have a setting if it should leave messages on server. Look around the account settings. I think it's called "leave mail on server" when you're using pop and "download mailbody on check" if you're using imap. (I don't have access to outlook at the moment)
Back to top
View user's profile Send private message
Skubidoo
n00b
n00b


Joined: 20 May 2003
Posts: 37

PostPosted: Mon Jul 26, 2004 11:27 pm    Post subject: Reply with quote

Hehe, yes, I was talking to myself :D .
My problem is really nasty, the mails don't get saved in the /home/vpopmail/users/domain.tld/user/cur/.maildir....
but in the user's folder in the home directory instead, like /home/user, the user which you would add using useradd instead of the user added with vadduser (but if i create such a folder there they will be saved in it but obviously not obtained from it).

Now all the incoming mails are ending up in the queue (that's why I thought sending would work), or when forwarding switched on, I get a reply message that such a user wouldn't exist. Of course I can't download anything if it's not in the user's maildir. I've seen some posts concerning this issue in the gentoo forums, but no solution which would have worked for me.
When I use mutt it will ask me whether I want to create a '/home/user//.maildir'

It looks like if there's something that might possibly not work under any kind of unliekely conditions, then you can tell that for me it certainly won't. :oops:
Back to top
View user's profile Send private message
ryker
Guru
Guru


Joined: 28 May 2003
Posts: 412
Location: Portage, IN

PostPosted: Tue Jul 27, 2004 5:29 am    Post subject: Reply with quote

Skubidoo
I had similiar problems with vpopmail getting confused between the local user accounts and virtual ones. It was because I had a virtual domain with the same name as my machine. Everything worked fine once I made sure the machine name was unique from any of the virtual domain names.
_________________
Athlon 64 3200+, 80G WD sata hd + 200G IDE, 1G Geil DDR400, MSI K8T Neo
IntelCore2Duo 2.0Ghz MSI laptop,100G SATA hd, 2G RAM
Back to top
View user's profile Send private message
flashingcurser
n00b
n00b


Joined: 25 Mar 2004
Posts: 34

PostPosted: Tue Jul 27, 2004 5:39 am    Post subject: Reply with quote

Anyone know of a replacement for qmail-scanner? Nothing I do will make it work.

Its probably a permissions problem


Code:
root@gerbil dan # setuidgid qmaild "/var/qmail/bin/qmail-scanner-queue.pl" -g
perlscanner: generate new DB file from /var/spool/qmailscan/quarantine-attachments.txt
X-Qmail-Scanner-1.22:[] cannot open for write /var/spool/qmailscan/quarantine-attachments.db.tmp - Permission denied


Code:
root@gerbil dan # su qmaild
qmaild@gerbil dan $ /var/qmail/bin/qmail-scanner-queue.pl -g
perlscanner: generate new DB file from /var/spool/qmailscan/quarantine-attachments.txt
perlscanner: total of 9 entries.
qmaild@gerbil dan $


Everything works fine if I take every:

MAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"

Out of /etc/tcprules.d/tcp.qmail-smtp

Anyone have any Ideas? Or an alternate for qmail-scanner?
Back to top
View user's profile Send private message
naitram
n00b
n00b


Joined: 22 Aug 2003
Posts: 18
Location: California

PostPosted: Sat Jul 31, 2004 6:56 am    Post subject: Reply with quote

First, thanks so much for the information here. I was able to set up a server in a short period of time that does incredible things with ease, and I'm very appreciative.

I had the same root@localhost problem with the mysql. Never tracked it down, but the only package i had to re-emerge was courier-imap and everything worked fine.

Lastly, my question. Since this server is an smtp server for multiple domains, I've got a problem with my server cert. During the qmail setup, I configured the cert for the hostname of the machine. I have everything set with aliases in the dns config for each domain so that mail.domain.tld points to the hostname of this machine. This causes (at least in thunderbird) a message box to pop up saying that I'm attempting to send to box mail.domain.tld but the connection is being made to mail.otherdomain.tld, and is this okay with me? Is there a way to specify (preferably) multiple certificates, or multiple hostnames on one cert so this message does not occur? That I've been unable to find any information about it leads me to think that it may be just my configuration. But i'm kinda at a loss.
Back to top
View user's profile Send private message
feffi
Apprentice
Apprentice


Joined: 29 Mar 2003
Posts: 216
Location: Sol->Earth->Germany->Giessen

PostPosted: Mon Aug 02, 2004 10:20 am    Post subject: Reply with quote

Hey,
have a look at
"HOWTO: qmail vpopmail courier-imap qmail-scanner etc"
at the Gentoo-Wiki-Wanted pages: 8O
http://gentoo-wiki.com/Wanted#Articles_on_the_forums_to_be_copied_over

It would be cool to have your Howto there...
If you like I can copy it over..
_________________
have fun

feffi

/(bb|[^b]{2})/ that is the Question!

Gentoo-Wiki: Acer Travelmate 803 LCi manual
Back to top
View user's profile Send private message
Tazok
Guru
Guru


Joined: 25 Oct 2003
Posts: 310

PostPosted: Mon Aug 02, 2004 8:51 pm    Post subject: Reply with quote

I always get the error:
Code:
Remote host said: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

when trying to send mail to my domain.
What am I doing wrong?
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


Joined: 29 Apr 2004
Posts: 18
Location: Lanham, MD USA

PostPosted: Wed Aug 04, 2004 9:11 pm    Post subject: Reply with quote

Reject on SMTP...

This patch will only accept email if it can find a valid account on the server.
http://www.interazioni.it/qmail/

I'm just getting into Gentoo so I haven't figured out how to get that to nicely install yet. Will look at it tonight I hope. But that should solve one of your problems petterg.

Maybe someone could point me to a thread on adding patches and creating ebuilds?
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 ... 8, 9, 10 ... 23, 24, 25  Next
Page 9 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