Guardian Digital Inc. >
InfoCenter >
Mailing List Archives >
Amavis
Amavis Mailing List Archive
Nick,
first of all, thanks for your response! It did not tell me exactly what
I wanted to hear, but it contained valuable information anyway.
Nick Leverton wrote:
> On Mon, Dec 13, 2004 at 05:46:32PM +0100, LeoĻ Bitto wrote:
>
>>When reading the FAQ at http://www.ijs.si/software/amavisd/#faq-spam I
>>found an answer to the question "No spam-related headers inserted?",
>>which says that one of the reasons is that "@local_domains_acl is not
>>correctly set". So here comes my question: what is the best way of
>>filling the parameter @local_domains_acl in my configuration? I would
>>love to be able to fill it automatically from the MySQL database, where
>>I have this information for Postfix already (set via its parameter
>>virtual_mailbox_domains). Unfortunatelly I was not able to configure
>>amavisd-new this way, probably because of my very low Perl experience.
>
> You don't need it, because SQL lookups override the static ACLs.
Yes, I know this - but I was trying to avoid the SQL lookups at all, by
giving all the users the same static configuration right away from
amavisd.conf.
> All you
> need to do is to figure out an SQL query to retrieve the domain name
> and any other per-domain fields, and place it in $sql_select_policy
> (also set up @lookup_sql_dsn). Amavis looks there first if it's set.
> Look in README.lookups for the table format and more info.
I have checked this documentation already. However, instead of
reinventing the wheel, I am going to try Maia Mailguard. Something like
this would be my next step, anyway. So if I am not able to do only one
step, I am going to do two steps right away. ;-)
> I have this looking into a table of the format given in README.lookups
> but I don't think you need to provide all the fields (I suppose you
> could return constants in the query). Any not provided default to NULL
> (signifying to look in amavis.conf), but for 'local' NULL Does The Right
> Thing assuming all the ones in the table are actually local.
That would be my job to play with this setting. However, being the lazy
guy, I am going to try Maia instead - it seems that it is a mature
project which could take care of all these issues for me.
> Lookups are cached but only for consecutive same accesses so you don't
> need to restart.
That's fine, assuming that the definition of "consecutive same accesses"
is reasonable here. I take it as my job to test this.
>>In the meantime I have set $local_domains_re = new_RE( qr'.*'i ); which
>>I think makes amavisd-new process all the e-mails through ClamAV and
>>SpamAssassin. This is not what I want, though, I would like to be able
>>to process the e-mails for the local recipients only (this server will
>>be used as a backup MX as well).
>
> It's not bad to virus-scan outgoing mail, if there's any Windows boxes
> on the inside.
That's true, but I need this machine to be a fully transparent backup MX
record for other domains in DNS, too.
> I haven't figured out reliably how to make it notify me
> of viruses only from inside yet though.
Another thing: in such setup I would need the DSN in case of
intercepting an e-mail message to be always sent to the originator of
the message (and possibly to some administrator's e-mail, too). My
preferred global setting (for mail originated remotely) is that the DSN
is sent to the original recipient and local administrator mailboxes
only. I am willing to take the risk of having a spammer which forges the
originator (therefore letting amavis to send the DSN to the wrong
address) in the internal network - this would have to be solved on a
face-to-face meeting anyway. The reason is that it would be very hard
(meaning nearly impossible) to explain the users why their mail was not
delivered and they were not informed about this. Relying on the
administrator investigating every intercepted e-mail message, and
notifying the users, is just not feasible. Does anobody have any hint here?
Leos
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
|