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


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Wed Dec 29, 2004 1:20 am    Post subject: Reply with quote

well at present time I try to solve how to get mailserver to work in vserver environment - without loopback interface and within binding the spamd on the eth interface issues the "required_hits: ?" and "hits: ?" messages in qmail-scanner logs and spam comes completely through.

If anybody got this to work, I would appreciated that as radulucian´s appeal...
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
sucarino
n00b
n00b


Joined: 20 Aug 2004
Posts: 32
Location: San Jose, Costa Rica

PostPosted: Wed Dec 29, 2004 2:33 am    Post subject: Reply with quote

petterg wrote:
Based on just a few mails I've got tonight, it seems like spamassassin 3.02 is 10-20% faster than SA 2.64 - so that's good. But I agree with you, it's slow. If any other program would do the same job faster I would switch.

Figured out where the data for Bayes is stored: ~/.spamassassin.
Where ~ is the homedir of the user spamd is running as.
(That was the end of a night discussing spamassassin with myself here. Hope someone will find it usefull.)


What should I say... thanks a lot [petterg] for all your help! :wink: This forum rocks!
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 29, 2004 12:14 pm    Post subject: Reply with quote

stripe wrote:
well at present time I try to solve how to get mailserver to work in vserver environment - without loopback interface and within binding the spamd on the eth interface issues the "required_hits: ?" and "hits: ?" messages in qmail-scanner logs and spam comes completely through.

If anybody got this to work, I would appreciated that as radulucian´s appeal...


Why would you want to bind spamd to eth and run without loopback?
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Wed Dec 29, 2004 12:17 pm    Post subject: Reply with quote

because I don´t have a loopback interface in v-host environment...
_________________
Sick of computers? Well, Czech girls and beer solve it! Trust me :-)
Back to top
View user's profile Send private message
radulucian
Apprentice
Apprentice


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

PostPosted: Wed Dec 29, 2004 1:20 pm    Post subject: Dspam is NOT spamD... Reply with quote

weren't you talking about DSPAM (and not spamd!) ??

i've been doing a lot of research on DSPAM and apparently its A LOT better than SA, but that is IF you get it to work as you need it to work

my configuration is almost identical to the one described in this tutorial, and if i could integrate DSPAM so that all my users could just forward their spam to one unique address like spam@domain.xx that would be EXCEPTIONAL, especially if DSPAM could be applied to ALL incoming email regardless of their destination.

so, again, if anyone manages to advance in geting DSPAM to work in this configuration please leave a message...

for the record: dspam is NOT spamd (notice the D at the begining not at the end)... see more here: http://www.nuclearelephant.com/projects/dspam/ if you need to be convinced
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Thu Dec 30, 2004 5:38 pm    Post subject: Reply with quote

I haven't tried dspam, and I don't know much about perl, but here is an idea of how to make it work.
I asume there is a commandline syntax you can use to manualy feed dspam with mail of the same format as they are stored in maildir. Then dspam will give you output as some kind of spamlevel and an exit code.
Then - if you make a bash script that takes a mail as input on STDIN and passes it to dspam. dspam will give it's output back to the script and the script will have to transform the format to look as if it came from spamc. Also exitcodes will have to be manipulated.

Then edit qmail-scanner.pl - change the $spamc_binary to read the path of your bash script. Qmail-scanner will be fooled to think it works with spamassassin.

(Or if you know perl you could probably modify the sub spamassassin in qmail-scanner.pl)
Back to top
View user's profile Send private message
gamezfreak
n00b
n00b


Joined: 15 Dec 2003
Posts: 26

PostPosted: Fri Dec 31, 2004 11:59 pm    Post subject: Reply with quote

I've been trying to setup qmail/vpopmail and I can succesfully recieve email bu I can't send any mail. I am using Thuderbird and it logs the messges as sent, but I don't recieve them in my yahoo account.

I get the following message in /var/log/qmail/qmail-send/current saying that it can't establish an SMTP connection.

Code:

@4000000041d5a0053181a32c new msg 3192270
@4000000041d5a005318423cc info msg 3192270: bytes 670 from <gamezfreak@fusion-net.dyndns.org> qp 7063 uid 201
@4000000041d5a0053274408c starting delivery 12: msg 3192270 to remote account@yahoo.com
@4000000041d5a00532751b4c status: local 0/10 remote 1/20
@4000000041d5a0060ef4f0fc delivery 12: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
@4000000041d5a0060ef5103c status: local 0/10 remote 0/20


Any suggestions?

Edit:
Forgot to mention, I can send to my own qmail account just no others.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sat Jan 01, 2005 5:00 pm    Post subject: Reply with quote

gamezfreak wrote:
I've been trying to setup qmail/vpopmail and I can succesfully recieve email bu I can't send any mail.


What happens if try to send a mail using the qmail-inject? Send to an account on your system, see if it shows up, and to the yahoo-account and see if it shows up there.
What happens if you telnet to port 25 and pretent to be sending a mail?
Try to disable qmail-scanner in tcp.smtp - does it make any difference?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sat Jan 01, 2005 5:03 pm    Post subject: Reply with quote

gamezfreak wrote:
Code:

@4000000041d5a0060ef4f0fc delivery 12: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/


#4.4.1 - Wasn't that what came up when there was a problem with connection to mysql? Do you get any mysql-error in /var/log/messages?
Are you able to log in to mysql using the info in /etc/vpopmail.conf?
Back to top
View user's profile Send private message
radulucian
Apprentice
Apprentice


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

PostPosted: Sat Jan 01, 2005 6:20 pm    Post subject: petterg Reply with quote

hi petterg
i've been looking arround in the qmail-scanner.pl script and i think it can be done even more elegantly than that if you know perl well enough to design that subroutine you are talking about.
so, if you think you can do the subroutine for qmail-scanner.pl to work with dspam, let's try to make it work, and i will adapt qmail-scanner to use it as an alternative and not necesarily as a replacement of spamc...
so... what do you say ? feel up to take this challenge ?
Back to top
View user's profile Send private message
gamezfreak
n00b
n00b


Joined: 15 Dec 2003
Posts: 26

PostPosted: Sat Jan 01, 2005 6:55 pm    Post subject: Reply with quote

petterg,

I tried the following
Code:

qmail-inject me@mydomain.com < message
qmail-inject me@yahoo.com < message


me@mydomain.com is sent and recieved succesfully
me@yahoo.com fails to send with the same error message

When telneting to port 25 I get
Code:

220 Arctic-Server.FusionNet ESMTP



Here is my tcp.smtp file
Code:

#-----------------------------------------------------------------
# ALLOW THESE IPS TO RELAY MAIL THROUGH OUR SERVER
#
# Local class-c's from our LAN are allowed to relay,
# and we wont bother doing any RBL checking.
#123.123.123.:allow,RELAYCLIENT="",RBLSMTPD=""
#123.111.111.:allow,RELAYCLIENT="",RBLSMTPD=""
#
# Connections from localhost are allowed to relay
# (because the WebMail server runs on localhost),
# and obviously there is no point trying to perform an RBL check.
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
#
#-----------------------------------------------------------------
# ALLOW EVERYONE ELSE TO SEND US MAIL
#
# Everyone else can make connections to our server,
# but not allowed to relay
# RBL lookups are performed
:allow
# If you are using qmail-scanner, this line here is the correct one to use
# instead (comment out the above ':allow' line FIRST) and applies that script
# to any mail coming in that is not from a host allowed to relay. You can
# change the value of the variable to any other value you desire to use custom
# scripts for example.
#:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
192.168.2.81:allow,RELAYCLIENT="",RBLSMTPD=""


There are no error messages in /var/log/messages
I get a sucessful LOGIN and LOGOUT from pop3-ssl when I receive mail but nothing about failed sends

I can login to mysql using the same info as in vpopmail.conf without any problems.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sat Jan 01, 2005 8:54 pm    Post subject: Re: petterg Reply with quote

radulucian wrote:
feel up to take this challenge ?


I would If I had the time. I'm filled up with projects for the next few weeks. I'll see if I can find a slot for it some day.
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sat Jan 01, 2005 9:03 pm    Post subject: Reply with quote

gamezfreak wrote:
When telneting to port 25 I get
Code:

220 Arctic-Server.FusionNet ESMTP



Look somewhere earlier in this thread for what to do while logged in with telnet. Basicaly you have to do everything qmail-inject does, just step by step to see what fails. Someone did post this stuff before.
Back to top
View user's profile Send private message
gamezfreak
n00b
n00b


Joined: 15 Dec 2003
Posts: 26

PostPosted: Sun Jan 02, 2005 4:36 pm    Post subject: Reply with quote

Ok I did the following in telnet:
Code:

mail from: me@mydomain.com
250 ok
rcpt to: me@yahoo.com
250 ok
data
354 go ahead
test message
.
250 ok 1104665754 qp 7825


Now in /var/log/qmail/qmail-send/current I get
Code:

@4000000041d7dca40d6a97dc new msg 3192224
@4000000041d7dca40d6ab334 info msg 3192224: bytes 208 from <me@mydomain.com> qp 7825 uid 201
@4000000041d7dca40db9159c starting delivery 123: msg 3192224 to remote me@ya
hoo.com
@4000000041d7dca40db92924 status: local 0/10 remote 1/20
@4000000041d7dca42f1780fc delivery 123: deferral: Sorry,_I_wasn't_able_to_establ
ish_an_SMTP_connection._(#4.4.1)/
@4000000041d7dca42f179c54 status: local 0/10 remote 0/20
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sun Jan 02, 2005 10:49 pm    Post subject: Reply with quote

gamezfreak wrote:
...

Is it posible that you have a firewall blocking smtp? Or maybe your isp blocks smtp?
Back to top
View user's profile Send private message
gamezfreak
n00b
n00b


Joined: 15 Dec 2003
Posts: 26

PostPosted: Sun Jan 02, 2005 11:02 pm    Post subject: Reply with quote

I allowd both inbound and outbound traffic on port 25 in Iptables. I did a google search to check if my ISP, Earthlink, blocked it. It turns out Earthlink has been blocking SMTP traffic since 2000.

Can I change the port that the smtp server runs on?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Mon Jan 03, 2005 12:41 pm    Post subject: Reply with quote

At least the problem is located now.
I'm afraid there is not much you can do about it - other than ask the isp to open the port for you, or get a new isp.

You may change the port for the server. That would help some, but not much. You'll be able to send mail out, but lots of spamfilters will try to contact the smtp server on port 25, and if it cannot reach the server the mail will be rejected.
Also all incomming mail will try to goto port 25.

To get around this you would need to inform the smtp server that tries to send you mail. The only place it looks for info before trying to contact your server is the dns server. I don't think it's posible to include a port number in the mx record of a domain.
Back to top
View user's profile Send private message
f1n4rf1n
n00b
n00b


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

PostPosted: Mon Jan 03, 2005 1:18 pm    Post subject: Reply with quote

Quote:
To get around this you would need to inform the smtp server that tries to send you mail. The only place it looks for info before trying to contact your server is the dns server. I don't think it's posible to include a port number in the mx record of a domain.


But there is another solution: many providers of www.dyndns.org services also offer a port 25 solution - check if they could help you!
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Tue Jan 04, 2005 12:19 am    Post subject: Reply with quote

Great!
http://www.dyndns.org/services/mailhop/relay.html
You can even take your server down and it will cache mails for you.

But still... Eventho there are way to work around this, you ISP should know that you will switch to another isp if they don't open that port for you. (We don't like isp's that limits our services!)
Back to top
View user's profile Send private message
Nazzy
n00b
n00b


Joined: 26 May 2004
Posts: 34

PostPosted: Tue Jan 04, 2005 8:26 am    Post subject: Reply with quote

First off, a big thanks to the people in this thread for the tutorial and also for fixing problems to help me diagnose problems in my deployments.

However this collision of software is producing headache after headache ... at the moment the work around I had to use to get qmail scanner to work with clamav seems to be creating run away processes ... joy!

Anyone here familiar enough perl and with spam assassin to be able to tell me how complex the code is? I've got a mind to build myself a new mail program in the not to distant future ... one that doesn't involve hacking programs together and building a house of cards *mutter*
Back to top
View user's profile Send private message
astano
n00b
n00b


Joined: 04 Jul 2004
Posts: 39

PostPosted: Thu Jan 06, 2005 6:11 pm    Post subject: squirrelmail not using qmail-scanner Reply with quote

I've installed qmail, vpopmail, qmail-scanner and squirrelmail following this great tutorial. Everything is working just fine, execpt for one thing.
If I send e-mail via Outlook it get passed through qmail-scanner. But if I send it using squirrelmai it is sent, but dont get checked by qmail-scanner.

Mt tcp.smtp looks like this:

Code:
# Qmail-Scanner disabled for mail from localhost, relay allowed
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue"                                                                                                                         
# Qmail-Scanner enabled (virus only) for mail from local network,relay allowed
192.168.1.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"                                                                                                                         
# Qmail-Scanner enabled (virus and spam) for mail from external internet, relay denied
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"


The squirrelmail is configured to use smtp.

I really need to get this working, because the intention is to use just webmail, and the e-mails must get checked by qmail-scanner.

Any idea of what is going on?

Qmail-scanner 1.24
squirrelmail 1.4.3.a
_________________
Ast@nO
Back to top
View user's profile Send private message
stripe
n00b
n00b


Joined: 04 Jan 2004
Posts: 72
Location: Prague

PostPosted: Thu Jan 06, 2005 6:19 pm    Post subject: Re: squirrelmail not using qmail-scanner Reply with quote

you have to set qmail-scanner for the loopback than, because squirrelmail sends the mail to lo smtp.

Code:
# Qmail-Scanner disabled for mail from localhost, relay allowed
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue"                                                                                                                         


astano wrote:
I've installed qmail, vpopmail, qmail-scanner and squirrelmail following this great tutorial. Everything is working just fine, execpt for one thing.
If I send e-mail via Outlook it get passed through qmail-scanner. But if I send it using squirrelmail it is sent, but dont get checked by qmail-scanner.

Mt tcp.smtp looks like this:

Code:
# Qmail-Scanner disabled for mail from localhost, relay allowed
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-queue"                                                                                                                         
# Qmail-Scanner enabled (virus only) for mail from local network,relay allowed
192.168.1.:allow,RELAYCLIENT="",RBLSMTPD="",QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"                                                                                                                         
# Qmail-Scanner enabled (virus and spam) for mail from external internet, relay denied
:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"


The squirrelmail is configured to use smtp.

I really need to get this working, because the intention is to use just webmail, and the e-mails must get checked by qmail-scanner.

Any idea of what is going on?

Qmail-scanner 1.24
squirrelmail 1.4.3.a

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


Joined: 04 Jan 2004
Posts: 126

PostPosted: Fri Jan 07, 2005 3:01 am    Post subject: Courier-ESMTP? Reply with quote

Has anyone tried replacing the Qmail-smtp/send part with Courier's ESMTP? Would it not be much cleaner to use Courier for both SMTP and IMAP/POP instead of splitting it up?

Not to forget, Courier also support IPv6, where Qmail does not fully.
Back to top
View user's profile Send private message
ramsesii
n00b
n00b


Joined: 07 Dec 2004
Posts: 28
Location: vienna

PostPosted: Fri Jan 07, 2005 5:13 am    Post subject: no chance to compile courier-authlib on amd64 Reply with quote

hi everybody!

i fail to get qmail working on my adm64 (~amd64) system. first i tried stable version, but failes - changed use - and cflags (-fPIC).

i finally made vpopmail to compile against libs from mysql-4.0.22 (package.masked - next higher version did NOT compile)... but with courier-authlib im @ the end.

the error on compiling courier-authlib is:
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: /var/vpopmail/lib/libvpopmail.a(cdb_seek.o): relocation R_X86_64_PC32 against `read@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libauthvchkpw.la] Error 1

my emerge info: emerge info
Portage 2.0.51-r8 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.10-gentoo-r1 x86_64 AMD Opteron(tm) Processor 248
Gentoo Base System version 1.4.16
Python: dev-lang/python-2.3.4 [2.3.4 (#1, Oct 28 2004, 08:02:56)]
dev-lang/python: 2.3.4
sys-devel/autoconf: 2.59-r6, 2.13
sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3
sys-devel/binutils: 2.15.92.0.2-r2
sys-devel/libtool: 1.5.2-r7
virtual/os-headers: 2.6.8.1-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CFLAGS="-march=k8 -mmmx -msse -msse2 -m3dnow -m64 -O3 -mfpmath=sse -fPIC"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -mmmx -msse -msse2 -m3dnow -m64 -O3 -mfpmath=sse -fPIC"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox"
GENTOO_MIRRORS="http://gentoo.inode.at ftp://gentoo.inode.ad/sources/ ftp://mirror.nutsmaas.nl/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
LDFLAGS=""
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X aalib acpi alsa amd64 apache2 aspell audiofile avi berkdb bitmap-fonts bonobo bzlib cdr crypt cups directx divx4linux dvb dvd esd f77 fam foomatic foomaticdb fortran ftp gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml gzlib icq imagemagic imap imlib innodb ispell jabber java jp2 jpeg junit kerberos krb4 ldap libclamav libwww lzw lzw-tiff maildir mozilla msdn msn mysql ncurses nls oav opengl pam pda perl php png posix postgres ppds python qmail quotas readline samba ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts usb userlocales xinerama xml xml2 xmms xpm xrandr xv xvid yahoo zlib linguas_de linguas_pl linguas_en"



thank your very much for help.
mario
Back to top
View user's profile Send private message
cyphz0r
n00b
n00b


Joined: 29 Oct 2003
Posts: 12

PostPosted: Sat Jan 08, 2005 9:24 pm    Post subject: Reply with quote

Quote:
> nano -w /etc/conf.d/spamd.conf
SPAMD_OPTS="-d -u vpopmail -v -x -C /etc/mail/spamassassin/local.cf"



If I have that line in my spamd.conf file the spamd gets executed as /usr/bin/perl -w /usr/sbin/spamd <opts> and qmail-scanner won't pick it up.

However, if I take out hte -C option it works fine.

Anyone else experience this? It scans and works fine without that option there but I was just wondering as it might be worthwhile to get the instructions changed if others have that issue also.
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 ... 16, 17, 18 ... 23, 24, 25  Next
Page 17 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