4 messages in net.sourceforge.lists.courier-maildropRE: [maildropl] vpopmail+maildrop+mysql
FromSent OnAttachments
Patrice LarameeJun 19, 2003 8:45 am 
Benjamin TomhaveJun 19, 2003 8:57 am 
Patrice LarameeJun 19, 2003 11:01 am 
Benjamin TomhaveJun 19, 2003 11:31 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [maildropl] vpopmail+maildrop+mysqlActions...
From:Patrice Laramee (patr@megacom.net)
Date:Jun 19, 2003 11:01:54 am
List:net.sourceforge.lists.courier-maildrop

Hi Ben,

On Thu, 19 Jun 2003, Benjamin Tomhave wrote:

Pat,

This issue was discussed fairly extensively in several forums in the past couple months (qmailadmin, vchkpw, etc.). The conclusion was that aliases should no longer be used, but instead everything should be setup as a forward. In fact, the qmailadmin developers have decided to remove the

Hummmm well ok... But with the mysql patch, Qmail now use a table called valias in MySQL witch for my case contains:

mysql> select * from valias where valias_line="&te@mydomain.com"; +----------+--------------+-----------------------------+ | alias | domain | valias_line | +----------+--------------+-----------------------------+ | test | mydomain.com | &myem@anotherdomain.com | +----------+--------------+-----------------------------+ 1 row in set (0.00 sec)

I know from now on that I should not use aliases, do you know if this kind of patch might work?

I think that this method is not getting processed as an alias, because I know that the email sent to my server (even if is an alias) get filtred. The only problem is that the email is lost... :\

Here an example in my logs: Jun 19 13:54:34 wolverine qmail: 1056045274.481262 info msg 52967: bytes 1522 from <myem@mydomain.com> qp 24294 uid 89 Jun 19 13:54:34 wolverine qmail: 1056045274.499078 starting delivery 349008: msg 52967 to local mydo@mydomain.com Jun 19 13:54:34 wolverine qmail: 1056045274.610344 delivery 349008: success: vdelivermail:_valiases_processed/did_0+0+1/

If you can see, valiases_processed ?!?!?! But the mail never gets forwarded to my email account. Everything has been tested properly, the only problem now is the !@#$%#%#% forwarded contain in my MySQL table :\ I really need to find a solution for this. MySQL is required for what I need here.

I had a very bad idea (looks more like a patch to me) creating a small program that connects on my MySQL server and check if it's a forward. If it's a forward I should pipe everything vdelivermail or if it's a mail account, give it to maildrop. What do you think of that? Do you think it worth a try?

Thanks, -Pat

alias option altogether and only allow forwards. Thus, if you have an alias with the direct path to the destination Maildir, that will definitely result in by-passing maildrop, which isn't useful, and thus that line should be replaced with the &us@domain.com in order to funnel it through maildrop accordingly. There was discussion in the qmailadmin forum of writing a script that would handle mass conversion from aliases to forwards for an entire domain, but I doubt anybody has written one yet. A simple grep and sed combo should do the trick, however.

cheers,

-ben

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net]On Behalf Of Patrice Laramee Sent: Thursday, June 19, 2003 9:45 AM To: cour@lists.sourceforge.net Subject: [maildropl] vpopmail+maildrop+mysql

Hi All,

I'm running a mail server using Qmail(1.03) with vpopmail(5.3.20)+mysql. Recently I decided to install spam assassin with maildrop to filter some junk mail. After installing and configured maildrop(1.5.3)+spamassassin it I realised that it was doing a very good job except for the aliases.

Example: I have an mail account te@mydomain.com and an alias tes@mydomain.com redirecting to another mailbox (already tested on a another server).

If I send an email to the mail account te@mydomain.com it's get filted and delivered without any problems. If I send an email to the alias te@mydomain.com I can see in the logs that the valias are processed but the email never got forwarded.

I've been looking around to find a solution, but after two days of research I only found another guy that have the same problem but no solution.

You can find his problem there: http://www.mail-archive.com/vchkpw@inter7.@ http://www.mail-archive.com/vchkpw@inter7.@

Thanks for your help!!! -Pat