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


Joined: 20 Mar 2005
Posts: 11

PostPosted: Thu Mar 31, 2005 2:46 pm    Post subject: Reply with quote

I think something's wrong with the 2.6 kernel, AMD64 and this dooooooomed program. I'm trying to make it work for 3 weeks now, but not completly successful :( (having AMD64 and gentoo about 2 months old).

1) I wasnt able to just install it.

emerge qmail
followed the steps of this tutorial
svscan start

Quote:

@40000000424c0afe0e8b1754 tcpserver: fatal: temporarily unable to figure out IP address for 0.0.0.0: file does not exist


go to hell you stupid user, Im not willing to cooperate ...

ok

2) I downloaded the source codes

make, install
followed the steps from lifewithqmail
qmailctl start

and, guess what, the same error

3) I deleted UCSPI / tcpserver package, emerged, unmerged, deleted, maked, deleted, emerged, unmerged, maked,
on and on, and one day, SOMETHING happend. I really can not say WHAT, IT just stopped throwing the damned error about 0.0.0.0 (dont make fool of me, I really tried to put any other IP address there, FQDN, no change) and started working ! I was using the qmail-send, qmail-smtpd locally for about a week.

Ok. Now lets move to "relay just for authorized users, no damned spammers" machine. Ehm. Uch. Problem. Couldnt get the damned relaying to work ! SMTP-AUTH, SMTP-after-POP3, no change. Until I found a note, that for some reason, if tcpserver is copiled with +ipv6, it WILL NOT RELAY. Hell.


4) I unmerged UCSPI, emerged again, with USE="-ipv6", and guess what ?

Quote:

@... tcpserver: fatal: temporarily unable to figure out IP address for 0.0.0.0: file does not exist


And until now, I wasnt able to make it work again :(

Can ANYONE help me ?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Fri Apr 01, 2005 8:08 am    Post subject: Reply with quote

Letus wrote:

@... tcpserver: fatal: temporarily unable to figure out IP address for 0.0.0.0: file does not exist


Reinstall everything with -ipv6.
(If ipv6 is on you have to enter v6 IP's all over - or without ipv6 you have to use v4 ip's all over. Mixing is probably not any good idea.)
Back to top
View user's profile Send private message
Letus
n00b
n00b


Joined: 20 Mar 2005
Posts: 11

PostPosted: Fri Apr 01, 2005 8:25 am    Post subject: Reply with quote

thank you for answer !

what do you mean by "everything", how far do I have to go ? UCSPI, for sure. QMAIL ? what else ?

(this error you see is generated by tcpserver already compiled WITHOUT IPV6, thats why I ask :( )
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sun Apr 03, 2005 3:13 pm    Post subject: Reply with quote

Letus wrote:
thank you for answer !

what do you mean by "everything", how far do I have to go ? UCSPI, for sure. QMAIL ? what else ?

(this error you see is generated by tcpserver already compiled WITHOUT IPV6, thats why I ask :( )


I don't know. After you've disabled the ipv6 flag you could do an "emerge -pvD world |grep ipv6" to see all packages that would be affected by the ipv6 and reemerge them. (I think the -pvD would be the right parameter to use. If not, read the manual.)
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1598
Location: U.S.A.

PostPosted: Mon Apr 11, 2005 3:01 pm    Post subject: Reply with quote

I have been trying on a amd64 system also to get qmail working and it doesn't. Emerged -r15 on the amd64.
Have -r13 on the x86 and is working fine there.

So I don't know if it is borked and wasting my time on the wrong thing or not. All I want is for my cronjobs
to be mailed to me.

One question I have is: I keep seeing about emerging vpopmail now. I don't think I have to have that to just get
qmail to work now do I? Just want my cronjobs mailed, and this works on the x86 system just fine.

Set this one up the same on the amd64 and it's not mailing them. I check the logs and getting a:
Code:
delivery 9: failure: User_over_quota._(#5.1.1)/
status: local 0/10 remote 0/20
triple bounce: discarding bounce/748655
end msg 748655


I have googled,... and can't find the answer on any of it or on the quota issue either. Everybody says: check your disk quota.
I don't have quota installed, it has something to do with qmail and ??? drawing a blank.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
BlackB1rd
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2003
Posts: 131
Location: /Europe/Netherlands/Haarlem

PostPosted: Sat Apr 30, 2005 10:22 am    Post subject: Reply with quote

I didn't follow this guide, but this one: http://gentoo-wiki.com/HOWTO_Setup_QMAIL_RELAY-CTRL_VPOPMAIL_&_QMAILADMIN_with_a_minimum_amount_of_fuss

It seems almost identical. But now I'm getting these messages in /var/log/qmail/qmail-send/current:
Code:

@4000000042735b4022a8eeb4 status: local 1/10 remote 0/20
@4000000042735b4022eaaebc delivery 18: deferral: Unable_to_chdir_to_maildir._(#4.2.1)/


(Almost) all email stay in queue and cannot be delivered. It seems to unable to locate the maildirs, but this should be handled by the vpopmail package I think?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Sat Apr 30, 2005 11:05 am    Post subject: Reply with quote

BlackB1rd wrote:
I didn't follow this guide, but this one: http://gentoo-wiki.com/HOWTO_Setup_QMAIL_RELAY-CTRL_VPOPMAIL_&_QMAILADMIN_with_a_minimum_amount_of_fuss


That guide is the same as the one in this thread: https://forums.gentoo.org/viewtopic-t-310719-highlight-.html
I don't think it's a very good idea to follow that guide. Read my comments in the linked thread. (Also take note of the threadstarters reaction to my comments. He might not have the best intentions when he wrote the guide.)

I recomend you follow the guide Sabrex wrote in this thread.
Back to top
View user's profile Send private message
Decibels
Veteran
Veteran


Joined: 16 Aug 2002
Posts: 1598
Location: U.S.A.

PostPosted: Sat Apr 30, 2005 4:09 pm    Post subject: Reply with quote

I forgot to say. I just unmerged and remerged qmail and got it working. Must have been
something from copying over some of my previous configs from the x86 system.
Mails local mail just fine now.
_________________
Support bacteria – they’re the only culture some people have.”

– Steven Wright
Back to top
View user's profile Send private message
BlackB1rd
Tux's lil' helper
Tux's lil' helper


Joined: 13 Aug 2003
Posts: 131
Location: /Europe/Netherlands/Haarlem

PostPosted: Sun May 01, 2005 6:05 pm    Post subject: Reply with quote

petterg wrote:
That guide is the same as the one in this thread: https://forums.gentoo.org/viewtopic-t-310719-highlight-.html
I don't think it's a very good idea to follow that guide. Read my comments in the linked thread. (Also take note of the threadstarters reaction to my comments. He might not have the best intentions when he wrote the guide.)

I recomend you follow the guide Sabrex wrote in this thread.

Thanks, I tried to fix my configuration by using this thread, but I still getting these messages. I'm not sure if the permissions are correct, should qmail not be running as vpopmail user? I just can't get it working :(

[edit]
I'm not sure what I exactly did, but it seems to work fine now :) Hopefully I don't have to reconfigure this thing ever again ;)
[/edit]
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Mon May 02, 2005 7:41 am    Post subject: Reply with quote

BlackB1rd wrote:

Thanks, I tried to fix my configuration by using this thread, but I still getting these messages. I'm not sure if the permissions are correct, should qmail not be running as vpopmail user? I just can't get it working :(


Qmail should not be running as vpopmail.

There are a lot of security problems that turns up with the guide you followed. If you're not 100% sure what you've done all the way during install you should try to undo everything and start over using this guide. For details on the problems, read my post in the thread linked in my previous posting.
Back to top
View user's profile Send private message
yc
n00b
n00b


Joined: 13 Apr 2005
Posts: 43

PostPosted: Tue May 03, 2005 12:33 am    Post subject: Reply with quote

I have followed the instructions and procedures to setup my qmail or other relevant packages. I can send emails to out side of the world with no problems. But I dont' received any reply messages or new messages sent from out side at all. Any suggestions?

Also instead of using mutt to check emails, is there any other better email client??

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: Tue May 03, 2005 8:15 am    Post subject: Reply with quote

yc wrote:
I have followed the instructions and procedures to setup my qmail or other relevant packages. I can send emails to out side of the world with no problems. But I dont' received any reply messages or new messages sent from out side at all. Any suggestions?

Also instead of using mutt to check emails, is there any other better email client??

Thanks in advance!


First, check your system by running the qmailscanner test:
Extract the files from /usr/portage/distfiles/qmail-scanner-xxxx
In the folder contrib there is a script called test_instalation. Run it!

If no error - check for files in /var/vpopmail/domains/YOURDOMAIN/USERNAME/.maildir/new

If no files in the folder - modify the testscript:
insert
Code:
RECIP="username@yourdomain.tld"

before the line
Code:
echo "Sending standard test message - no viruses..."

Should be at line 112 or something like that.

Then run the script again and look for files in the folder.

If still no files in the folder - check for errors in your logfiles.

If you get files in the folder - but no mail using mutt (or other clients) make sure the client is configured correctly - you may also have a problem with your imap server.

If you get mail using mutt when you're testing, but not when someone are sending you mails you may have a firewall problem - maybe your ISP is kind enough to block port 25?
Try send mail from mutt to yourself on localhost.

Does sending mail from the outside produce any errormessages?
Back to top
View user's profile Send private message
yc
n00b
n00b


Joined: 13 Apr 2005
Posts: 43

PostPosted: Tue May 03, 2005 10:40 am    Post subject: Reply with quote

I couldn't locate "/usr/portage/distfiles/qmail-scanner-xxxx". No such file found.
Where or how can I get it?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Wed May 04, 2005 1:22 pm    Post subject: Reply with quote

yc wrote:
I couldn't locate "/usr/portage/distfiles/qmail-scanner-xxxx". No such file found.
Where or how can I get it?


emerge -f qmail-scanner

(xxx is a version number, not the letters xxx!)
Back to top
View user's profile Send private message
emeraldv45
n00b
n00b


Joined: 24 Mar 2005
Posts: 2

PostPosted: Thu May 12, 2005 5:53 am    Post subject: .qmailadmin-limits Reply with quote

I have been searching for a while on how to get .qmailadmin-limits to work with a standard vpopmail install.
So far I have concluded that vpopmail needs to be installed with
Code:
--disable-mysql-limits
I have changed the ebuilds to reflect this, but Mysql still creates a limits table when someone logs into qmailadmin. All I changed in the ebuild was one line stating
Code:
--enable-mysql-limits
in
Code:
          use mysql \
                                && myopts="${myopts} --enable-auth-module=mysql \
                                            --enable-libs=/usr/include/mysql \
                                            --enable-libdir=/usr/lib/mysql \
                                            --enable-mysql-logging=y \
                                            --enable-auth-logging=y \
                                            --enable-valias=y \
                                            --enable-mysql-replication=n \
                                            --enable-mysql-limits"

to
Code:
--disable-mysql-limits
I noticed that some of the commands using vmoddomlimits work like maxpopaccounts but I can't get non-postmaster account flags to work. I am trying to setup vpopmail so clients can log in and create their own accounts. I just want to limit the number of accounts per domain as well as user quotas. I am using vpopmail-5.4.6-r1. Any ideas? If you need it, I have a write up of my entire install.
Back to top
View user's profile Send private message
emeraldv45
n00b
n00b


Joined: 24 Mar 2005
Posts: 2

PostPosted: Thu May 12, 2005 4:45 pm    Post subject: .qmailadmin-limits Reply with quote

I have also tried:
Code:
          use mysql \
                                && myopts="${myopts} --enable-auth-module=mysql \
                                            --enable-libs=/usr/include/mysql \
                                            --enable-libdir=/usr/lib/mysql \
                                            --enable-mysql-logging=y \
                                            --enable-auth-logging=y \
                                            --enable-valias=y \
                                            --enable-mysql-replication=n \
                                            --enable-mysql-limits=n"

I had no luck with this either

This is how I setup my server
Code:
Qmail
#emerge -C ssmtp
#emerge qmail
#ebuild /var/db/pkg/mail-mta/qmail*/qmail* config
#ln -s /var/qmail/supervise/qmail-send /service/qmail-send
#ln -s /var/qmail/supervise/qmail-smtpd /service/qmail-smtpd
#rc-update add svscan default
#/etc/init.d/svscan start

Vpopmail
#emerge vpopmail
#ebuild /var/db/pkg/dev-db/mysql*/mysql* config
#/etc/init.d/mysql start
#/usr/bin/mysqladmin -u root -h localhost password ‘password’
#/usr/bin/mysqladmin -u root -p password ‘password’
#mysql -u root -p
>create database vpopmail;
>use mysql;
>grant select, insert, update, delete, create, drop
>on vpopmail.*
>to vpopmail@localhost
>identified by ‘vpopmail password’;
>flush privileges;
>exit
#nano /etc/vpopmail.conf
(change secret to vpopmail password on 2 lines)

Courier-imap
#emerge courier-imap
#nano /etc/courier/authlib/authdaemonrc
authmodulelist=”authvchkpw”
#nano /etc/courier-imap/imapd
IMAPDSTART=YES
AUTHMODULES=”authvchkpw”
#nano /etc/courier-imap/pop3d
POP3DSTART=YES
AUTHMODULES=”authvchkpw”
#rc-update add courier-imapd default
#rc-update add courier-pop3d default
#/etc/init.d/courier-imapd start
#/etc/init.d/courier-pop3d start

Pure_ftpd
#emerge pure-ftpd
#rc-update add pure-ftpd default
#groupadd ftpgroup
#useradd ftpuser -g ftpgroup -d /dev/null -s /etc
#nano /etc/conf.d/pure-ftpd
Uncomment IS_CONFIGURED=”yes”
AUTH=”-lpuredb:/etc/pureftpd.pdb

Squirrelmail
#emerge squirrelmail
#webapp-config -I -h localhost -d mail squirrelmail 1.4.4
#emerge qmailadmin

#emerge bind
#rc-update add named default

#emerge iptables
#rc-update add iptables default

#emerge apache php mod-php
#nano /etc/conf.d/apache2
APACHE2_OPTS=”-D PHP4”


My Use Flags
Code:
-gtk -gnome -quicktime X apache2 ethereal imap jpeg kde libwww maildir mpeg mysql php samba sasl ssl vhosts nls xml xml2


My CFLAGS
Code:
CFLAGS=”-march=athlon-xp -msse2 -02 -pipe -ftracer”


---------------------------
AMD64-3500
1GB OZC
2x250GB SATA WD RE
MSI K8N Neo2
Back to top
View user's profile Send private message
AxelTerizaki
n00b
n00b


Joined: 12 Apr 2003
Posts: 33

PostPosted: Sat May 21, 2005 11:12 pm    Post subject: Reply with quote

Hello.

Recently there has been an update of qmail (-r13 to -r15) so I decided to upgrade it, along with courier-imap which I left at version 3.x when 4 was out.

The transition from courier-imap 3 to 4 went more smoothly than I expected, but qmail... that's another story.

Now:
- qmail-smtp doesn't do SMTP-Auth at all anymore. It was supposed to do so via vpopmail. It just lets everyone use the server as an open relay without auth. Which is bad, of course.
- Also, the smtp server forbids me from sending mail to anything but the domains in rcpthosts, while it was working perfectly before.

I'm trying for nearly 4 hours now and I'm really out of ideas, so I'm trying this forum. I've used it for help many times, having found similar problems to mine most of the time, but there, I have absolutely no clue of what is going on. I'd like to try switching to another virtual domain hosting/MTA couple, like some people suggested (using courier, postfix...) but I have yet to find a tutorial for gentoo that would allow me to do all that the original tutorial of this thread allowed me to. For now I'm trying to keep qmail, if I can solve this.

So, back to my problem, I'll try to provide as much info as possible.
Contents of /var/qmail/control/conf-smtpd
Code:

# Configuration file for qmail-smtpd
# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-smtpd,v 1.4 2005/01/28 08:15:18 hansmi Exp $

# Stuff to run before tcpserver
#QMAIL_TCPSERVER_PRE=""
# Stuff to run qmail-smtpd
#QMAIL_SMTP_PRE=""
# Stuff to after qmail-smtpd
#QMAIL_SMTP_POST=""

# this turns off the IDENT grab attempt on connecting
TCPSERVER_OPTS="${TCPSERVER_OPTS} -R"

# fixcrio inserts missing CRs at the ends of lines. See:
# http://cr.yp.to/ucspi-tcp/fixcrio.html
# http://cr.yp.to/docs/smtplf.html
# DO NOT enable this, when you are using SSL/TLS (USE=ssl)!
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} fixcrio"

# You might want to use rblsmtpd with this, but you need to fill in a RBL server here first
# see http://cr.yp.to/ucspi-tcp/rblsmtpd.html for more details
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} rblsmtpd -r RBL-SERVER"

# If you are interested in providing POP or IMAP before SMTP type relaying,
# emerge relay-ctrl, then uncomment the next 2 lines
#QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-chdir"
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} relay-ctrl-check"
# In /etc/courier-imap/authdaemonrc add the next line to the end:
#authmodulelist="${authmodulelist} relay-ctrl-allow"
# Then in /etc/courier-imap/{imapd,imapd-ssl,pop3d,pop3d-ssl}
# Add this at the end
#PRERUN="${PRERUN} envdir /etc/relay-ctrl relay-ctrl-chdir"

# This next block is for SMTP-AUTH
# This provides the LOGIN, PLAIN and CRAM-MD5 types
# the 'cmd5checkpw' used in $QMAIL_SMTP_AUTHCHECKPASSWORD supports CRAM-MD5
# and reads it's data from /etc/poppasswd
# see the manpage for cmd5checkpw for details on the passwords
# uncomment the next four lines to enable SMTP-AUTH
QMAIL_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
[ -z "${QMAIL_SMTP_POST}" ] && QMAIL_SMTP_POST=/bin/true
QMAIL_SMTP_CHECKPASSWORD="/var/vpopmail/bin/vchkpw"
QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"


Contents of /etc/tcprules.d/tcp.qmail-smtp
Code:

# to update the database after changing this file, run:
# tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb /etc/tcprules.d/.tcp.qmail-smtp.tmp < /etc/tcprules.d/tcp.qmail-smtp
#------------------------------------------------------
# DESCRIPTION OF THE RULES TO REMIND ME OF HOW THIS FILE WORKS
#
# If you set 'allow', this means that our mail server will allow
# the specified IP range to make a TCP connection to our server
#
# If you set 'deny', this means that our mail server will not allow
# the specified IP range to make a TCP connection to our server
#
# If you set RELAYCLIENT="", this means that the listed IP range is
# allowed to relay mail through our server
#
# If you dont set RELAYCLIENT="", this means that the listed IP range
# will not be able to relay mail through our server
#
# If you set RBLSMTPD="", this means that the listed IP ranges will
# not be checked against any of the RBL databases
#
# If you set RBLSMTPD="some text here", this means that an RBL lookup
# wont be performed, but the mail will be rejected with the specified
# text as a 4xx temp error message
#
# If you set RBLSMTPD="-some text here", this means that an RBL lookup
# wont be performed, but the mail will be rejected with the specified
# text as a 5xx perm error message
#
# If you do not set RBLSMTPD="" or ="some text", then an RBL lookup
# will be performed. If the lookup is successful, then RBLSMTPD will
# return your custom error message (as specified in the -r parameter
# in smtpd supervise script)
#
#-----------------------------------------------------
# HERE ARE THE RULES! :
#-----------------------------------------------------
# BYPASS OPEN RELAY CHECKING FOR THESE IPS :
#
# These IPs are ones that we have setup so that they arent RBL checked.
# We have done this because these particular servers are RBL listed,
# and for whatever reason they can't/won't fix their open relay problem,
# and we still want to be able to receive mail from them.
#
# reminder text goes here for this entry so we know the story...
#111.111.111.111:allow,RBLSMTPD=""
# reminder text goes here for this entry so we know the story...
#222.222.222.222:allow,RBLSMTPD=""
#
#-----------------------------------------------------------------
# DONT ALLOW THESE IPS TO SEND MAIL TO US :
#
# mailXX.offermail.net connecting regularly and sending invalid
# format messages causing exit with status 256 (bare linefeed normally)
# entry added 15/12/2001
# after looking at the mail coming from these servers it was found to be spam
#216.242.75.100-116:allow,RBLSMTPD="-Connections from this IP have been banned."
#
# heaps of spam from replyto of *@freeamateurhotties.com dec2001
#64.228.127.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#154.20.94.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#209.151.132.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#216.18.85.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#
#-----------------------------------------------------------------
# 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"
194.242.112.151:allow,RELAYCLIENT="",RBLSMTPD=""

# Qmail-Scanner disabled for mail from localhost, relay allowed
#127.0.0.1:allow,QMAILQUEUE="/var/qmail/bin/qmail-queue"                                                                                                                         
# Qmail-Scanner enabled (virus only) for mail from local network, relay allowed
#192.168.1.:allow,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"

# 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
#: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"



Is there something else I can add so you can help me? Thanks in advance :)
Back to top
View user's profile Send private message
Red-Drop
n00b
n00b


Joined: 10 Mar 2005
Posts: 37

PostPosted: Tue May 24, 2005 5:33 am    Post subject: Reply with quote

I and others have solved this issue in this post

https://forums.gentoo.org/viewtopic-t-339867-highlight-upgrade+qmail.html
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Tue May 24, 2005 8:56 am    Post subject: Reply with quote

The solution Red-Drop linked to has some security issues you should concider. Read my posting in the same thread, posted few minutes before this posting. Problem is on the clientside - not serverside!
Back to top
View user's profile Send private message
AxelTerizaki
n00b
n00b


Joined: 12 Apr 2003
Posts: 33

PostPosted: Tue May 24, 2005 4:45 pm    Post subject: Reply with quote

I thank you both for this, I'm in the process of modifying configuration to retry this, I believe it might be the solution alright :)

As for the clientside problem, it's simple: none of my users use Outlook :P
Back to top
View user's profile Send private message
tbu
n00b
n00b


Joined: 24 May 2005
Posts: 1

PostPosted: Tue May 24, 2005 4:46 pm    Post subject: Reply with quote

Hi!
I followed the guide successfully till the point when spamassassin rewrites the subjet header of the mail!
so everthing is working exept it wont rewrite the subject line. also i see in the header:

(f-prot: 4.5.4/3.16.6. spamassassin: 3.0.2. perlscan: 1.25st.
Clear:RC:0(64.233.170.203):SA:1(1002.5/4.0):.
Processed in 1.687191 secs); 23 May 2005 20:35:48 -0000
X-Spam-Status: Yes, hits=1002.5 required=4.0
X-Spam-Level: ++++++++++++++++++++++++++++


my local.cf looks like this:

required_hits 5.0
rewrite_header Subject *****SPAM*****
report_safe 2
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
lock_method flock


any idea why spamassassin wont rewrite the header?

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


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

PostPosted: Fri May 27, 2005 9:55 pm    Post subject: Reply with quote

tbu wrote:
Hi!
I followed the guide successfully till the point when spamassassin rewrites the subjet header of the mail!


This guide was written for spamassassin-2.6x.x and qmail-scanner-1.16. They had a problems with the subject rewrite. Sabrex found a workaround he included in step 8 (edit qmail-scanner.pl). As of >qmail-scanner-1.20 this is no longer nessesary.

Try to reemerge qmail-scanner and leave the .pl unchanged.

I'm going to setup a new mailserver soon. Probably by the end of next week. I'll log what I do and make an updated guide based on the great work Sabrex did on this one.
Back to top
View user's profile Send private message
Crymson
Apprentice
Apprentice


Joined: 21 Mar 2004
Posts: 200
Location: Flagstaff, AZ

PostPosted: Tue Jun 07, 2005 2:59 am    Post subject: Problems with qmail and vchkpw Reply with quote

Well, it's been a long time coming, but I finally have a FULL solution for people using cram-md5 auth, and are getting vchkpw errors with Eudora, and others.

I posted a bug on bugzilla, and can be viewed here. The solution is a simple patch, and ebuild of qmail.

I still don't understand why this took OVER A YEAR to get solved, and not even by the developer, but hey. It works for me. Every mail client works exactly like it should now.

https://bugs.gentoo.org/show_bug.cgi?id=53117

Enjoy, I hope it fixes a lot of peoples problems out there.

-=Crymson
_________________
Knowledge is Power // Power Corrupts // Study Hard // Be Evil
Back to top
View user's profile Send private message
kostodo
n00b
n00b


Joined: 24 Apr 2005
Posts: 3

PostPosted: Thu Jun 16, 2005 4:39 am    Post subject: Reply with quote

Im getting this error when im trying to run test_installation.sh:

Code:
Sending bad spam message for anti-spam testing - In case you are using SpamAssassin...
X-Qmail-Scanner-1.25st: We have reasons to believe this mail is SPAM
qmail-inject: fatal: mail server permanently rejected message (#5.3.0)
Bad error. qmail-inject died




It seems this is a regular problem as i've set the subject to get modified to *****SPAM***** and i've yet to get a SPAM mail actually come through into the recipients inbox. If i send test spam, it just never gets delivered (the mailserver swallows it).


Any ideas?
Back to top
View user's profile Send private message
petterg
Guru
Guru


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

PostPosted: Fri Jun 17, 2005 11:56 pm    Post subject: Reply with quote

kostodo wrote:
Im getting this error when im trying to run test_installation.sh:


I think I remember seeing a setting somewhere regarding if the server should reject or drop spam. If set to 'reject' I would guess permanent error #5.3.0 is the correct message to return to sender. However, qmail-inject shouldn't die!?

Does spamassassin log any errors?
Does the user spamd and qmail-scanner run as have write access to the temporary mail file when checking for spam?
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 ... 21, 22, 23, 24, 25  Next
Page 22 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