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


Joined: 22 Dec 2003
Posts: 37

PostPosted: Tue Oct 12, 2004 7:57 am    Post subject: Reply with quote

..i have start the postfix installation , is much easier , and for virtual domains , i have install the vmail package.. is pretty faster , and flexible (and yes it play)
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 Oct 12, 2004 6:21 pm    Post subject: Reply with quote

blubbi:
Your howto is offline?
Cheers.
Back to top
View user's profile Send private message
cron0
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 132
Location: Montreal, Quebec

PostPosted: Wed Oct 13, 2004 1:37 pm    Post subject: Weird... Reply with quote

I did the HOWTO exactly as said.

Everything seems to work but:
If I try to login via telnet or with a pop3 client, I have to enter USERNAME@DOMAIN as my username..

Am I not supposed to be able to login using ONLY the USERNAME ?

Thanks
Back to top
View user's profile Send private message
cron0
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jan 2004
Posts: 132
Location: Montreal, Quebec

PostPosted: Wed Oct 13, 2004 3:04 pm    Post subject: Reply with quote

Ok I've figured I need to use the defaultdomain file.

What I'm unable to understand is why I can't connect to SMTP port 25 using telnet and IMAP port 143 using a mail client.....

The ports are open and LISTENING:
Code:

tcp     0    0.0.0.0:143     0.0.0.0:*    LISTEN
tcp     0    0.0.0.0:25     0.0.0.0:*    LISTEN


Any clues why?
Back to top
View user's profile Send private message
Gandalf the White
Guru
Guru


Joined: 17 Dec 2003
Posts: 320
Location: Verdun, Canada

PostPosted: Sat Oct 23, 2004 5:50 pm    Post subject: Reply with quote

Are you connecting locally or over the internet? If you are connecting over the net then it is possible your isp blocks those ports?
Back to top
View user's profile Send private message
astano
n00b
n00b


Joined: 04 Jul 2004
Posts: 39

PostPosted: Wed Oct 27, 2004 3:27 pm    Post subject: perlscanner problem Reply with quote

I read almost everything in this forum, and find a reference for my problem, but it didn't get answered.... :(
I'm using qmail-scanner 1.23rc3 and the perlscanner module seens not to be working. When I do the test_installation from the qmail-scanner 1.16, 3 messages get passed just fine (one being tagged as a virus by the clamav, one as spam by the spamassassin e another "normal" e-mail). The problem is the second e-mail (the one who should be caught by the perlscanner module): it isn't caught.
It's not a permission problem, cause I can recrate the perlscanner DB and get no erros in the logs...
Anyone can help me?

Thanks
_________________
Ast@nO
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Thu Nov 04, 2004 8:32 pm    Post subject: Reply with quote

should qmail-scaner be scanning like this only

Code:

Thu, 04 Nov 2004 14:53:50 EST:6257: +++ starting debugging for process 6257 by uid=201
Thu, 04 Nov 2004 14:53:50 EST:6257: w_c: elapsed time from start 0.002877 secs
Thu, 04 Nov 2004 14:53:50 EST:6257: return-path='gentoo-user-return-90563-gentoolist=pcnetsources.com@lists.gentoo.org', recips='gentoolist@pcnetsources.com'
Thu, 04 Nov 2004 14:53:50 EST:6257: from='Ajai Khattri <ajai@bway.net>', subj='Re: [gentoo-user] Configuring Kudzu', via SMTP from 156.56.111.196
Thu, 04 Nov 2004 14:53:51 EST:6257: clamdscan: finished scan in 0.667695 secs
Thu, 04 Nov 2004 14:53:52 EST:6257: SA: finished scan in 1.122849 secs - hits=0.0
Thu, 04 Nov 2004 14:53:52 EST:6257: p_s: finished scan in 0.019003 secs
Thu, 04 Nov 2004 14:53:52 EST:6257: ini_sc: finished scan of "/var/spool/qmailscan/tmp/pcns.pcnetsources.com10995980306606257"...
Thu, 04 Nov 2004 14:53:52 EST:6257: ------ Process 6257 finished. Total of 1.923153 secs


I recall seeing a whole mess of info when qmail-scanner scanned before...

in viewing the logs i see SA & clamd are working, but what about qmail-scanner .. is it scanning short of the job?

BTW this thread has helped a whole lot .. thanks to everyone..
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Thu Nov 04, 2004 9:30 pm    Post subject: Reply with quote

stripe wrote:
Code:

Get rid of
QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
from /etc/tcp.smtp, Watch the add! It's not ".pl" anymore


I had this already in my config, but the problems with ebuild of qmail-scanner 1.23-r3 I had to solve:

a) chowns whole directory /var/spool/qmailscan to qscand without noticing you about that.
b1) setting wrapper in /var/qmail/conf/common-conf is not issue, if qmail scanner cannot work with it´s directory, when called under qmaild
b2) the same situation fixing tcp.smtp and eding the .PL issue
c) you have to chown whole directory back again
d) if it works finaly, in the night (on my box aprox. at 3AM) will qmail-scanner reinitialise database, but with bad UID+GID and mask 0700, so you are back again where you´ve been. so you have to finaly edit /etc/cron.daily/qmail-scanner

.....simply utopia.....

and one day of SMTP malfunction

I THINK IT IS SOLVED NOW, just do the things in my little howto above and you can go to sleep peacefuly without waking up by nervous users, like me..... 8)

Also i would like to confirm that my settings are correct..

my /var/qmail/control/conf-common looks like so:

Code:

# We don't have anything to set QMAILQUEUE to at the moment, so we leave it alone
export QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue"


My tcp.smtp looks like so
Code:
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"


The permissions on /var/spool/qmailscan is as follows:
Code:

drwxr-xr-x   6 qmaild qmail 496 Nov  4 14:07 qmailscan


the inside of /var/spool/qmailscan have permissions as below:
Code:

root@pcns qmailscan # ls -al
total 926672
drwxr-xr-x  6 qmaild qmail         496 Nov  4 14:07 .
drwxr-xr-x  6 root   root          176 Nov  4 12:41 ..
-rw-r--r--  1 root   root            0 Nov  4 13:25 .keep
drwxr-xr-x  5 qmaild qscand        120 Dec  2  2003 archive
-rw-------  1 qmaild nofiles     23712 Nov  4 15:49 mailstats.csv
-rw-------  1 qmaild qscand  948845759 Nov  4 15:49 qmail-queue.log
-rw-------  1 qmaild nofiles        57 Nov  4 14:07 qmail-scanner-queue-version.txt
drwxr-xr-x  5 qmaild qscand        120 Dec  2  2003 quarantine
-rw-r-----  1 qmaild nofiles     12288 Nov  4 14:05 quarantine-attachments.db
-rw-r--r--  1 qmaild qscand       7414 Nov  4 13:25 quarantine-attachments.txt
-rw-r--r--  1 qmaild qscand       7414 Nov  4 12:39 quarantine-attachments.txt.bak
-rw-r--r--  1 qmaild qscand        337 Nov  4 15:11 quarantine.log
drwxr-xr-x  2 qmaild qscand         72 Nov  4 15:49 tmp
lrwxrwxrwx  1 qmaild qscand         14 Nov  4 13:25 viruses.log -> quarantine.log
drwxr-xr-x  5 qmaild qscand        120 Dec  2  2003 working


My /etc/cron.daily/qmailscan looks like so:

Code:
cat qmail-scanner
#!/bin/bash
#/var/qmail/bin/qmail-scanner-queue -z
setuidgid qmaild /var/qmail/bin/qmail-scanner-queue-pl -z


I think thats it, i have been readign for a while .. and applying these fixes from the pieced together and linked threads i find .. Its all working now.. and i see SA scoring mail, so SA is working ..

Aside form the single question above.. do my files look correct?

I forgot to add my /etc/conf.d/spamd file:

Code:
cat /etc/conf.d/spamd
# Config file for /etc/init.d/spamd

# Some options:
#
# -a for auto-white-list
# -c to create a per user configuration file
# -L if you want to suppress DNS lookup
# -u USER to run as a user other than root
#
# for more help look in man spamd

SPAMD_OPTS="-a -c --siteconfigpath=/etc/mail/spamassassin/local.cf"
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Fri Nov 05, 2004 12:36 am    Post subject: Reply with quote

Few more questions..

i keep seeing this in the log.

Code:

Nov  4 18:54:26 pcns spamd[11032]: connection from localhost.localdomain [127.0.0.1] at port 33066
Nov  4 18:54:26 pcns spamd[5051]: handle_user: unable to find user 'intel@domain.org'!
Nov  4 18:54:26 pcns spamd[5051]: Still running as root: user not specified with -u, not found, or set to root.  Fall back to nobody.
Nov  4 18:54:26 pcns spamd[5051]: checking message <cmeh88+djom@eGroups.com> for intel@domain.org:65534.


Why doesnt it find the user? the user exists and the mail is delivered ..

and about the "-u" option, when i fill that in the /etc/conf.d/spamd with

Code:
SPAMD_OPTS="-a -u spamd -c --siteconfigpath=/etc/mail/spamassassin/local.cf"

and try to restart it i get
Code:
/etc/init.d/spamd restart
  [ ok ]ing spamd...
 * Starting spamd...
Can't determine home directory for user 'spamd'!
  [ !! ]d to start spamd


so what shall i do with both issues..?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sun Nov 07, 2004 9:30 pm    Post subject: Reply with quote

eltech wrote:
Code:
SPAMD_OPTS="-a -u spamd -c --siteconfigpath=/etc/mail/spamassassin/local.cf"

and try to restart it i get
Code:
/etc/init.d/spamd restart
  [ ok ]ing spamd...
 * Starting spamd...
Can't determine home directory for user 'spamd'!
  [ !! ]d to start spamd



Does spamd start when you restart the pc?
I think I'd unemerge spamassassin, delete all files related to it, then emerge it again
Back to top
View user's profile Send private message
gabio
n00b
n00b


Joined: 27 Oct 2004
Posts: 27

PostPosted: Mon Nov 08, 2004 7:05 pm    Post subject: Reply with quote

I can't get smtp to work.

I installed
qmail
mysql
vpopmail
courier-imap without ssl auth.

and did all the config as said in the howto in this tread and in the howto here:http://www.gentoo.org/doc/en/qmail-howto.xml

With a mozilla client, on an other pc of the network i try to get mail by pop, no problem
I try to send mail by smtp , set to tls in the client, and it keep asking me for a password. if i don't enter anything it give me the error messgage: connexion failed or refused.
Back to top
View user's profile Send private message
gabio
n00b
n00b


Joined: 27 Oct 2004
Posts: 27

PostPosted: Mon Nov 08, 2004 7:40 pm    Post subject: Reply with quote

Corrected, stupid me, the option "user name:" was on. now it send mail witout any complain.
if you have problem testing with an external client. check you acount info more than once:
-must have good server name.
-must have good authentification mode
-good port
-good username( hint, qmail expect name@domain.com)
-good server adresse.
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Mon Nov 08, 2004 8:23 pm    Post subject: Reply with quote

petterg wrote:
eltech wrote:
Code:
SPAMD_OPTS="-a -u spamd -c --siteconfigpath=/etc/mail/spamassassin/local.cf"

and try to restart it i get
Code:
/etc/init.d/spamd restart
  [ ok ]ing spamd...
 * Starting spamd...
Can't determine home directory for user 'spamd'!
  [ !! ]d to start spamd



Does spamd start when you restart the pc?
I think I'd unemerge spamassassin, delete all files related to it, then emerge it again
I think its funny no one replied to confirm my settings ..

anyway, i think because i dont specify a user in the /etc/conf.d/spamd file it just runs as root. Im not sure am just guessing... spamd is running fine, identifying spam, etc. but that line still tickles my curiosity.
Back to top
View user's profile Send private message
spdmnd
n00b
n00b


Joined: 26 May 2004
Posts: 21

PostPosted: Thu Nov 11, 2004 11:13 pm    Post subject: Reply with quote

I followed the qmail/vpopmail-howto on gentoo's main page and encountered some difficulties. My mail isn't delivered to /var/vpopmail/domains/myDomain/user/.mail but to ~/.mail. However I can login in fine in Horde and Evolution (IMAP+SSL) to send mail over SMTP.
Another thing that fails, is the printf command from step 3.3 of the how-to. It doesn't return anything, although permissions seem to be set correct.

Quote:
Code Listing 3.3: Adding a domain
[...]

# vadddomain wh0rd.org postpass
(Now quickly verify the domain is setup properly)
# printf "postmaster@wh0rd.org\0postpass\0blah\0" | vchkpw `which id` 3<&0
uid=89(vpopmail) gid=89(vpopmail) groups=0(root)
(If you don't see something similar to above, then permissions somewhere are incorrect)
# vadduser vapier@wh0rd.org vappw


Hope someone can help.
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 655
Location: Bonn

PostPosted: Fri Nov 12, 2004 3:03 pm    Post subject: Reply with quote

hi,

great howto, after some bugging around i finally got it completely working (btw some of the spam-related package-names seem to outdated/renamed, like dcc, Mail-Spamassassin).

Since I'm having trouble getting horde-imp working, i decided to stay with squirrelmail.
But there is one problem no one could tell me, so i'll try it here:

qmail is running on our home-server with dynamic IP. So i registered a dyndns.org-account which gets automatically updated. Now i can even send mail to the outside world.;)

Every account fetches severel external POP-Accounts (gmx..).

Now the PROBLEM is, how can i get the FROM-field to be like strowi@gmx.de instead of strowi@yggdrasill.dyndns.org, which is the dynip for that server...
The best way would be if i could dynamically change the FROM field..


Thx in advance!
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
shadowteller
n00b
n00b


Joined: 01 Oct 2004
Posts: 27
Location: Logan, UT

PostPosted: Sun Nov 14, 2004 6:49 am    Post subject: squirrelmail and qmailadmin Reply with quote

Okies I took 3 weeks going through this tutorial and the one located here http://www.gentoo.org/doc/en/qmail-howto.xml and going through this tutorial...I got all the way done and it just bombs on me...qmailadmin at least shows the login screen. I have no clue what my user account settings are (username, domainname, password) seriously I tried every combination...I think I hosed a setup somewhere.

Next when I try to run squirrelmail by going to its url all I get is wonderful php code...the code to forward to the /src/login.php page.

I am setting up this server as a small project cause I thought it would be a good idea and it has given me nothing but headaches. Can anyone please help.

IM session and ssh has helped in the past when I was old school redhat.
Maybe it will again.


thanx
Back to top
View user's profile Send private message
Strowi
l33t
l33t


Joined: 19 Aug 2003
Posts: 655
Location: Bonn

PostPosted: Sun Nov 14, 2004 11:34 am    Post subject: Reply with quote

hi,
since i am just in the process of buiding our own small mail-server, mybe i can help you a little..

At first it seems you have done sth wrong with your apache/php-setup (maybe you forgot to restart?). Wihtout more info (a look at the config-files) it's hard to say more about that, just follow an apache/php tutorial (there are others in these forums) to the dot.

As for the squirrelmail-login-data..
Remember when you did "vadddomain.." and vadduser x@domain pass" ? That is your login, you have to enter it including domain (since it is possible to create another x@domain2).

I myself haven't really finished yet, and have some trouble figuring out where to put my fqdn-domain, and where to put my local-domain, but if you need any more help, i will be glad if i can help.
_________________
--
Linux & such ...
http://blog.hasnoname.de
Back to top
View user's profile Send private message
shadowteller
n00b
n00b


Joined: 01 Oct 2004
Posts: 27
Location: Logan, UT

PostPosted: Sun Nov 14, 2004 7:17 pm    Post subject: Reply with quote

Strowi wrote:
hi,
since i am just in the process of buiding our own small mail-server, mybe i can help you a little..


Hope you don't get heartburn from it like I am.

Quote:
As for the squirrelmail-login-data..
Remember when you did "vadddomain.." and vadduser x@domain pass" ? That is your login, you have to enter it including domain (since it is possible to create another x@domain2).


Thats the one I am using....arggghhhhhhhhh :x

Quote:
I myself haven't really finished yet, and have some trouble figuring out where to put my fqdn-domain, and where to put my local-domain, but if you need any more help, i will be glad if i can help.


I think that is where I am screwing things up as well and where it says in the vearious conf files...localhost I am not sure if you should change those lines to your own fqdn or not. None of the tutorials on here explain that.
Back to top
View user's profile Send private message
shadowteller
n00b
n00b


Joined: 01 Oct 2004
Posts: 27
Location: Logan, UT

PostPosted: Sun Nov 14, 2004 11:06 pm    Post subject: Reply with quote

More errors...I unmerged vpopmail, courier-imap, horde-imp and squirrelmail. Did not unmerge Qmail since it is working I can send myself email all day....

So I remerged vpopmail changed the conf to

Quote:
# Read-only DB
localhost|0|vpopmail|mypassword|vpopmail
# Write DB
localhost|0|vpopmail|mypassword|vpopmail


I then started up mysql...

then did this...


Quote:
Leto ~ # mysql -p << EOF
> drop database vpopmail;
> create database vpopmail;
> use mysql;
> grant select, insert, update, delete, create, drop on vpopmail.* to vpopmail@localhost identified by 'goaway69';
> flush privileges;
> EOF
Enter password:
Leto ~ # chown root:vpopmail /etc/vpopmail.conf
Leto ~ # chmod 640 /etc/vpopmail.conf
Leto ~ # chown root:vpopmail /var/vpopmail/bin/vchkpw
Leto ~ # chmod 4711 /var/vpopmail/bin/vchkpw
Leto ~ # rc-update add mysql default
Leto ~ # vadddomain FreelancePhotography.org fppassw
': Can't create database 'vpopmail'. Database exists
vmysql: error creating table 'dir_control': No Database Selected
vmysql: sql error[b]: No Database Selected
vmysql: sql error[3]: No Database Selected
vmysql: error creating table 'limits': No Database Selected
vmysql: sql error[p]: No Database Selected
Error: (vadduser) can't read domain limits


If this sh!@ keeps up I am just going to dump the box reinstall windows, sell my domain name if I can, and reinstall everquest.

I am serious I have spent so many hours scouring these forums...and Google and the gentoo-wiki site that my wife is threatening to divorce me. I work a fultime job and a seocnd part-time job. And my little project is going to get me divorced. Its also keeping me from sleeping.

Someone PLEASE help!!!!
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Sun Nov 14, 2004 11:29 pm    Post subject: Reply with quote

There is no need to use mysql to use vpopmail..

I host many domains and have many mail accounts accross these domains .. i run vpopmail, squirrelmail, and much more .. no need to run mysql for vpopmail. I run mysql for other applications but not vpopmail. I actually dont even see the benefit; anyone mind displaying them? i have not seen any performance issues with my vpopmail setup. I have other issues but none are exclusively with vpopmail.
Back to top
View user's profile Send private message
radulucian
Apprentice
Apprentice


Joined: 05 Jan 2004
Posts: 151
Location: Bucharest Romania

PostPosted: Thu Nov 18, 2004 11:55 am    Post subject: Reply with quote

yes, here's the first benefit that comes to mind: i run several websites that have webmail and it's VERY easy for me to alter everything in the mysql tables (the mail users details) from the website scripts (php) without having to use any shell commands

good enough ? so you can also use mysql and make your life easier if you host some freemail service for example, and you want to register your users from the web interface directly. it's waaay easier and more elegant.

if you don't have any particular use for the msyql db feature, it may be better to not use mysql, as mysql becomes a single point of failure, and if mysql goes down for other reasons, your mail is down completely as well.
Back to top
View user's profile Send private message
eltech
Guru
Guru


Joined: 05 Nov 2002
Posts: 582
Location: New York

PostPosted: Thu Nov 18, 2004 1:33 pm    Post subject: Reply with quote

Well put and also the reason why i dont use mysql for vpopmail, eventhough i do run mysql for my blog.
Back to top
View user's profile Send private message
Smilez:)
n00b
n00b


Joined: 23 Jan 2004
Posts: 58
Location: Edmonton

PostPosted: Tue Nov 30, 2004 5:54 pm    Post subject: Reply with quote

Why do I go about adding a domain to be blocked by qmail or spamassassin after I have everything working? ie I don't want mail from dealzcity.net getting through.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Wed Dec 01, 2004 1:14 pm    Post subject: Reply with quote

Smilez:) wrote:
Why do I go about adding a domain to be blocked by qmail or spamassassin after I have everything working? ie I don't want mail from dealzcity.net getting through.


Look for "blacklisting" in spamassassin maual
Back to top
View user's profile Send private message
ill_brain
n00b
n00b


Joined: 02 Dec 2004
Posts: 5

PostPosted: Thu Dec 02, 2004 2:40 am    Post subject: Reply with quote

i become this error:


Quote:

@4000000041ae7f541051e11c X-Qmail-Scanner-1.24st:[www110195488868031469] Unable to open pipe to /var/qmail/bin/qmail-queue [16777215] (#4.3.0) - Broken pipe
@4000000041ae7f54114568dc X-Qmail-Scanner-1.24st:[www110195488868031469] Unable to close pipe to /var/qmail/bin/qmail-queue [255] (#4.3.0) - Illegal seek
@4000000041ae7f7c2cb8bcf4 X-Qmail-Scanner-1.24st:[www110195492768031581] Unable to open pipe to /var/qmail/bin/qmail-queue [16777215] (#4.3.0) - Broken pipe
@4000000041ae7f7c2da595c4 X-Qmail-Scanner-1.24st:[www110195492768031581] Unable to close pipe to /var/qmail/bin/qmail-queue [255] (#4.3.0) - Illegal seek



what can i do?
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 ... 14, 15, 16 ... 23, 24, 25  Next
Page 15 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