Tag Info

Hot answers tagged

9

The problem is your Amavis setup. Your quarantine destination seems to be a mail address. So Amavis injects the virus mail back into Postfix to be delivered to that address. Postfix now decides to scan the mail first and delegates to Amavis. Amavis recognizes the virus and tries to quarantine it by delivering to the quarantine mail address. So ... You get ...


5

Just send an email with the eicar test file attached. This file has a signature which any virus scanner should know and detect. As for the monitoring of the clamd process itself, there are many possibilities. I personally prefer using monit for it.


5

Amavis is in the default installation of Mac OS X. It can be used with SMTP server like Postfix (also installed with mac os x). But even if it comes with all Mac OS X installation, it is here to be used by Mac OS X server. But of course, by configuring manually postfix and amavis on mac os x client you could use them. There is a web page on Apple website ...


5

If your using amavisd-new, you can simply run the amavisd-release command, passing it the quarantine ID of the mail in question. It will take care of removing the email from the quarantine and injecting the email into Postfix, bypassing any content filtering. You can find out the details at ...


4

It calls it up via perl, no deamon required.


4

You need to provide more detailed logging output to solve that: Stop amavisd and restart it in debug mode (amavisd debug, on Debian/Ubuntu it's probably amavisd-new debug, but since you mention you configured amavisd with amavisd.conf and not /etc/amavis/conf.d/50-user, I guess you are not on Debian/Ubuntu). While you do that, you will probably want to ...


4

Silly me. Just found out about this page: http://www.postfix.org/addon.html ... and I quote: mailscanner system, works with Postfix and other MTAs. WARNING: This software uses unsupported methods to manipulate Postfix queue files directly. This will result in corruption or loss of mail. The mailscanner authors have sofar refused to discuss a proper ...


3

You order of rules is very bad. If you want to keep all of them and not add anything else, the order must be: smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, reject_invalid_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_destination, reject_unknown_recipient_domain, ...


3

to disable milter processing after amavis, add to your master.cf in the after-amavis section 127.0.0.1:10025 inet n - - - - smtpd [....] -o smtpd_milters= if you want to run the milter after amavis, set the smtpd_milters= configuration option in main.cf to an empty string and add the inet:localhost:8891 configuration to ...


3

There are several options to accomplish this, and they all largely depend on the delivery agent you are using to do the final delivery to a user's virtual mailbox. If you are using the stock Postfix virtual(8) delivery agent, you can't accomplish this. If you are using either the Cyrus LDA or the Dovecot LDA, you habe two more options: You can either use ...


3

Since you want to disable virus checking entirely, the easiest way to do so is find the @bypass_virus_checks_maps line in the Amavis configuration files (amavis.conf or conf.d/50-user) and change it to this; bypass_virus_checks_maps => [1];


2

You can use the parameter %admin_maps_by_ccat to define whom amavisd-new sends Mails for each of its categories. With undef you can disable the mails. So you have to define a setting like the following if you don't want to get mails for all "unchecked" mails: $admin_maps_by_ccat{+CC_UNCHECKED} = undef;


2

Postfix has a header_check facility to allow you to scan headers and decide what to do with the email at that time. Docs: http://www.postfix.org/header_checks.5.html /^Date: .* (19[0-9][0-9]|200[0-9]|2010)/ REJECT Your email is stuck in a timewarp This is an example of a date check. Unfortunately, this is not dynamic. Postfix does support Sendmail ...


2

GNU Mailman has the "not metoo" and "no dupes" user config options, which do exactly what you're looking for. Additionally, Mailman is very easy to get working with postfix.


2

Solved on Amavis Users Group... Thanks Mark Martinec Requires two changes: In /etc/amavis/conf.d/50-user add this: ################## ---- CUSTOM SIGNATURES AS DISCLAIMERS ------- ############################### # uses altermime to insert a different signatue per users # signatures are located in teh /etc/postfix/signatures/ directory # also needs a small ...


2

Have you checked this parameter: @local_domains_acl It is defined on /etc/amavis/conf.d/05-domain_id. According to the Amavisd-new documentaion on http://www.ijs.si/software/amavisd/: No spam-related headers inserted? Here are some reasons: @local_domains_acl is not correctly set. These headers are only inserted for recipients matching ...


2

Amavisd-new uses SpamAssassin's perl modules directly, so all the spam processing is done directly in the amavisd processes.


1

In the main.cf, set smtpd_data_restrictions = reject_unauth_pipelining,permit_sasl_authenticated,check_sender_access pcre:/etc/postfix/content_filter.pcre Do not set content_filter= in main.cf! /etc/postfix/content_filter.pcre should be something like: /^/ FILTER smtp-amavis:[127.0.0.1]:10024 Do not forget to run postmap ...


1

You'll need to setup something like procmail or maildrop to filter the mail into the correct folder when it gets delivered. Using maildrop you can have a default system wide config which will check the headers and filter spam into the correct location, with something like this in /etc/maildroprc: if (/^X-Spam-Status: yes) { to "Maildir/.Spam" } ...


1

strace one of the stuck processes. It might give you a hint what's wrong. strace -p PROCESSIDOFSTUCKPROCESS Cheers


1

You could write a script that crawl the users "Spam" folder and train dspam from those mails. You could also filter mail from amavisd-new with something like: (blow is just an example stub config, untested) /etc/postfix/dspam_filter_access /^<xxx-spam-regex-subject?,to?>.*$/ FILTER dspam:dspam /./ OK /etc/postfix/master.cf dspam ...


1

At startup, modern amavisd-new version look for a number of binaries in $PATH, including the dspam executable. If this one is found, dspam will automatically be trained with the results of all other spam checks configured in amavisd-new. The only downside is: All mail content is learned with only one user id (same as amavisd-new's SA integration). And, ...


1

You can delete emails with a particular tag in header. See Postfix Header Checks Man page for details. Example: In "/etc/postfix/main.cf", add header_checks = regexp:/etc/postfix/header_checks In "/etc/postfix/header_checks", have /^(Subject: \[SPAM\])(.+)$/ DISCARD The above will discard all emails whose Subject starts with "[SPAM]". EDIT: I ...


1

In your Spamassassin local.cf file (usually located in /etc/mail/spamassassin) add the following line: blacklist_from <person you wish to blacklist. wildcards are acceptable> You can get more information on Spamassassin whitelist/blacklist here Restart spamassassin when you are done.


1

Postfix has a always_bcc setting, which you might want to use or look into.


1

One not very smart way to handle this problem is to add a line in your initd startup script that deletes the file in question at startup. Make sure you put it somewhere before amavisd starts.


1

You will probably need to download the CentOS source rpm for yum-priorities and build it for your RHEL system.


1

I never used a setup an external file. When I had to implement a whitelist, i simply used one of the form listed here: http://www.akadia.com/services/postfix_amavisd.html#Globally%20Sender%20Whitelists%20and%20Blacklists and especially this one: @whitelist_sender_maps = (['.example.org', '.example.net']);


1

Ok.. the problem turned out to be the server setup and me not changing the configuration on the right server ;-) For any one else who might stumble upon this, the right approach was to change the configuration in /opt/zimbra/conf/spamassassin/local.cf and restart amavis using zmamavisdctl stop and start.


1

I have had incredible success with Barracuda's "spam firewall" product, which you could offer to your customers as you describe. It's a Linux appliance using a primarily Open Source stack. I have built similar stacks myself on several occasions but I have yet to run across an Open Source Web frontend for the end users to manage the spam portion of it.



Only top voted, non community-wiki answers of a minimum length are eligible