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


Joined: 26 Oct 2002
Posts: 37
Location: Calif

PostPosted: Tue Aug 10, 2004 12:34 am    Post subject: Reply with quote

I was able to get qmail, vpopmail etc all setup and working, but my local email(for users of the machine) isn't accessable remotely through imap/pop3. I can't make them forward to the vpopmail box that gets setup for the local machine and i can't figure out how to make this work.
Any ideas?
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 11, 2004 4:54 pm    Post subject: Reply with quote

Need a little more info.. How are you trying to forward the mail? What is in your control/locals file? Where do you want the mail forwarded?

On my setup I have an empty locals file and just setup what would be in there as a virtual domain in vpopmail. Downside is each user has to have another account just for email but that's ok since I don't want all my local users to get email.
Back to top
View user's profile Send private message
quink
n00b
n00b


Joined: 26 Oct 2002
Posts: 37
Location: Calif

PostPosted: Wed Aug 11, 2004 4:56 pm    Post subject: Reply with quote

Well my main complaint is system email that goes to root. I can't figure out how to forward it to my vpopmail mail box for my default user.
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 11, 2004 11:14 pm    Post subject: Reply with quote

a .qmail file in the root directory doesn't work?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Thu Aug 12, 2004 7:54 am    Post subject: Reply with quote

flashingcurser wrote:
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

...
Everything works fine if I take every:

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

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


Running the quefix might solve your problem. It's posted somewhere earlier in this thread.
(Sorry if somebody already said that. I've been away for a while. I've not yet read all the new posts.)
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Thu Aug 12, 2004 8:01 am    Post subject: Reply with quote

Tazok wrote:
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?


Did you put your domain in the /var/qmail/control/rcpthosts ?
I think it should got there automatically when you add a domain using vadddomain, but if it's not try to put it there.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Thu Aug 12, 2004 8:07 am    Post subject: Reply with quote

quink wrote:
Well my main complaint is system email that goes to root. I can't figure out how to forward it to my vpopmail mail box for my default user.


I used qmailadmin to make aliases and forwards. That way it worked for me.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Thu Aug 12, 2004 8:31 am    Post subject: Reply with quote

TheSlab wrote:
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?


I would need something like that! Did you try it?
Maybe it's included in one of the qmail ebuilds.. The ebuild we're installing by using this guide includes a lot of patches, and there are also newer ebuilds masked by ~. If it's included we just need to figure out how to enable it.
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Fri Aug 13, 2004 9:58 pm    Post subject: Reply with quote

I haven't looked at other ebuilds. I've used it on systems where I did all the work putting stuff together and it works great, using it for the mailserver at work. I got a patch to work with the ebuild this document says but I guess I'm getting some conflicts with other patches. Appears to be some sort of memory access problem I haven't been able to track down. I plan to look at it more on Sunday when I get back. It's the only thing keeping me from flipping the switch to my new gentoo server right now :(
Back to top
View user's profile Send private message
devourment77
n00b
n00b


Joined: 16 Aug 2004
Posts: 8

PostPosted: Mon Aug 16, 2004 4:32 pm    Post subject: Reply with quote

I have read this over and over.. and not sure what is wrong. My vpop config password is right.. and it seems to write to mysql.. but when i do this vadddromain hidden-leaf.ath.cx

Code:

hidden-leaf devourment77 # vadddomain hidden-leaf.ath.cx
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


not sure what it is doing.. what files is it talking about... I can login to mysql with vpopmail just fine. I cannot vadduser to this domain either because of these errors.

and then when i try to delete this domain i get

Code:
vdeldomain hidden-leaf.ath.cx
Warning: Could not access (/var/vpopmail/domains/hidden-leaf.ath.cx)
Warning: Failed while attempting to delete domain from auth backend
Warning: Failed to delete directory tree: hidden-leaf.ath.cx



any help will be good.. i am just getting frustrated.

thx
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Mon Aug 16, 2004 7:37 pm    Post subject: Reply with quote

devourment77 wrote:
I have read this over and over.. and not sure what is wrong. My vpop config password is right.. and it seems to write to mysql.. but when i do this vadddromain hidden-leaf.ath.cx


Code:

vdeldomain hidden-leaf.ath.cx
### ignore the error
touch ~qmaild/control/locals
vadddomain hidden-leaf.ath.cx


That should fix your problem.
Back to top
View user's profile Send private message
devourment77
n00b
n00b


Joined: 16 Aug 2004
Posts: 8

PostPosted: Mon Aug 16, 2004 8:17 pm    Post subject: Reply with quote

problem solved.....

reason = i am a dumb ass lol

just tip for anyone else trying to do this.. read instructions carefully, and follow everyline.

thx for the help all
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Mon Aug 16, 2004 9:42 pm    Post subject: Reply with quote

devourment77 wrote:
problem solved.....

reason = i am a dumb ass lol

just tip for anyone else trying to do this.. read instructions carefully, and follow everyline.

thx for the help all


It happens :)
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Mon Aug 16, 2004 9:46 pm    Post subject: chkusr patch Reply with quote

Okay, I got it all working. I was being stupid and forgot to run qmail-smtpd as the vpopmail user, along with testing it incorrectly. Duh!

It is now running on my server beautifully. I'll touch up the patch a little and post it tonight.
Back to top
View user's profile Send private message
skyfolly
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 245
Location: Dongguan & Hong Kong, PRC

PostPosted: Tue Aug 17, 2004 4:09 pm    Post subject: Reply with quote

Thanks a lot.
_________________
I am the only being whose doom
No tongue would ask no eye would mourn
I never caused a thought of gloom
A smile of joy since I was born.
emily bronte
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Tue Aug 17, 2004 4:18 pm    Post subject: Reply with quote

Sorry I didn't get this last night, going on vacation tomorrow and have been packing.

Here's the patch I got working. It will assume you set all your virtual domains to bounce non-existant.

http://www.spaceballs.net/files/qmail/qmail-smtpd-chkusr-1.0.patch

I just added it to the ebuild around line 143 and emerged it. After that you need to modify the qmail-smtpd startup script
/var/qmail/supervise/qmail-smtpd/run
and set the user and group it will execute as to vpopmail

Isn't much more I can tell ya as this is the first "patch" I've dealt with for gentoo. I'd appreciate someone telling me how to submit for inclusion in the ebuild for qmail. I just wanna know how to do that stuff for later on. Thanks!

After you get it all installed and qmail-smtpd running you test it by doing
220 somemailserver.com ESMTP
mail theslab@somemailserver.com
250 ok
rcpt to: theslab@somemailserver.com
250 ok
rcpt to: asdf@somemailserver.com
550 sorry, no mailbox here by that name (#5.1.1 - chkusr)
quit
221 somemailserver.com

I was forgetting to do "to: " before and wanted to take myself to the back alley at night and beat myself with a bat when I figured out what I was doing wrong :)
Back to top
View user's profile Send private message
LodBot
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 155

PostPosted: Tue Aug 17, 2004 10:08 pm    Post subject: Reply with quote

I went to setup my qmailadmin login by doing the following:
Code:
/var/vpopmail/bin/vadddomain mydomain.com
and was returned with this:
Quote:
Please enter password for postmaster:
enter password again:
vmysql: sql error[c]: MySQL server has gone away
vmysql: sql error[b]: MySQL server has gone away
vmysql: sql error[3]: MySQL server has gone away
could not create limits table CREATE TABLE limits ( domain CHAR(64) PRIMARY KEY,
maxpopaccounts INT(10) NOT NULL DEFAULT -1, maxaliases
INT(10) NOT NULL DEFAULT -1, maxforwards INT(10)
NOT NULL DEFAULT -1, maxautoresponders INT(10) NOT NULL DEFAULT -1,
maxmailinglists INT(10) NOT NULL DEFAULT -1, diskquota
INT(12) NOT NULL DEFAULT 0, maxmsgcount INT(12) N
OT NULL DEFAULT 0, defaultquota INT(12) NOT NULL DEFAULT 0,
defaultmaxmsgcount INT(12) NOT NULL DEFAULT 0, disable_pop
TINYINT(1) NOT NULL DEFAULT 0, disable_imap TINYINT(1)
NOT NULL DEFAULT 0, disable_dialup TINYINT(1) NOT NULL DEFAULT
0, disable_passwordchanging TINYINT(1) NOT NULL DEFAULT 0, disable_w
ebmail TINYINT(1) NOT NULL DEFAULT 0, disable_relay TI
NYINT(1) NOT NULL DEFAULT 0, disable_smtp TINYINT(1) NOT NULL
DEFAULT 0, perm_account TINYINT(2) NOT NULL DEFAULT 0, p
erm_alias TINYINT(2) NOT NULL DEFAULT 0, perm_forward
TINYINT(2) NOT NULL DEFAULT 0, perm_autoresponder TINYINT(2) N
OT NULL DEFAULT 0, perm_maillist TINYINT(4) NOT NULL DEFAULT 0,
perm_quota TINYINT(2) NOT NULL DEFAULT 0, perm_defaul
tquota TINYINT(2) NOT NULL DEFAULT 0 )
vmysql: sql error[p]: MySQL server has gone away
Error: (vadduser) can't read domain limits
Mysql is running and I can connect to it fine through a php script. Any idea what's going on? I also tried to use localhost instead of mydomain.com.

Thanks in advance.
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Tue Aug 17, 2004 10:26 pm    Post subject: Reply with quote

LodBot wrote:
I went to setup my qmailadmin login by doing the following:


Try this post:
https://forums.gentoo.org/viewtopic.php?t=171499&postdays=0&postorder=asc&start=54

Most problems have already been answered in this long thread.
Back to top
View user's profile Send private message
LodBot
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 155

PostPosted: Tue Aug 17, 2004 10:34 pm    Post subject: Reply with quote

I'm getting somewhere... I followed those steps and now here's the output:
Quote:
root@lodbot1 forums # /var/vpopmail/bin/vadddomain mydomain.com
Please enter password for postmaster:
enter password again:
Error: Domain already exists


Any ideas how to somehow erase my domain so I can readd it?

Thanks for the help.
Back to top
View user's profile Send private message
TheSlab
n00b
n00b


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

PostPosted: Tue Aug 17, 2004 11:26 pm    Post subject: Reply with quote

vdeldomain domain.com

ignore the errors then add it back. All better now.
Back to top
View user's profile Send private message
LodBot
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 155

PostPosted: Wed Aug 18, 2004 1:11 am    Post subject: Reply with quote

TheSlab wrote:
All better now.
That it is. Thanks.
Back to top
View user's profile Send private message
blubbi
Guru
Guru


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

PostPosted: Wed Aug 18, 2004 4:03 am    Post subject: [SOLVED] Reply with quote

got an interesting problem:

everything works, except valias....

Code:
@4000000041234149166861ac new msg 821403
@40000000412341491668714c info msg 821403: bytes 532 from <anonymous@mail.xyz.de> qp 29857 uid 0
@400000004123414a1d314a1c starting delivery 84: msg 821403 to local mail.xyz.de-root@mail.xyz.de
@400000004123414a1d315da4 status: local 1/10 remote 0/20
@400000004123414a2570c52c delivery 84: success: vdelivermail:_valiases_processed/did_0+0+1/
@400000004123414a2570d8b4 status: local 0/10 remote 0/20
@400000004123414a2570dc9c end msg 821403


the mail seems to be delivered corrct.. but it appears nowhere...
The entrie in the database seems to be allright...

by the way, vacation messages don't work either... no error messages or anything is generated...
_________________
-->Please add [solved] to the initial post's subject line if you feel your problem is resolved.
-->Help answer the unanswered

http://olausson.de


Last edited by blubbi on Wed Aug 18, 2004 3:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
LodBot
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 155

PostPosted: Wed Aug 18, 2004 2:12 pm    Post subject: Reply with quote

When I send an email from squirrelmail, the header on the receiving end is Received: from MYHOSTNAME (bdsl.MYIP.gte.net [MYIP]). My question is how can I get that to say Received: from MYDOMAIN.COM (MYDOMAIN.COM [MYDOMAIN.COM])? I'm assuming I need to setup some sort of DNS software?

Thanks in advance.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Fri Aug 20, 2004 11:05 am    Post subject: Reply with quote

[quote="LodBot"]When I send an email from squirrelmail, the header on the receiving end is Received: from MYHOSTNAME (bdsl.MYIP.gte.net [MYIP]). My question is how can I get that to say Received: from MYDOMAIN.COM (MYDOMAIN.COM [MYDOMAIN.COM])? I'm assuming I need to setup some sort of DNS software?

You'll probably need read this thread more carefully regarding setup of squirrelmail
Back to top
View user's profile Send private message
LodBot
Apprentice
Apprentice


Joined: 06 Sep 2003
Posts: 155

PostPosted: Fri Aug 20, 2004 3:45 pm    Post subject: Reply with quote

petterg wrote:
You'll probably need read this thread more carefully regarding setup of squirrelmail
I guess I took the easy way out by just posting. I'll look around.

Thanks.
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 ... 9, 10, 11 ... 23, 24, 25  Next
Page 10 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