Spam/Virus checking is occurring for secondary mail. Avoidable?

Hello,
Like many, I added "localdomainsmaps = ( 1 );" to my amavisd.conf file to ensure email to my virtual hosts and local aliases was scanned. However, I've noticed in my quarantine directory/folder, that the domains I act as a secondary domain for are also scanned. I personally don't want this to happen.
The comments in amavisd.conf state:
# With Postfix (2.0) a quick reminder on what local domains normally are:
# a union of domains spacified in: $mydestination, $virtualaliasdomains,
# $virtualmailboxdomains, and $relay_domains.
It's these $relay_domains I don't want.
I can write out all the manually desired domain as per their example:
@localdomainsacl = ( ".$mydomain", '.example.com', 'sub.example.net' );
But maintaining a list of 100s of virtual domains and a handful of local aliases both here and in main.cf would be quite painful.
I tried this which works well for the virtual hosts:
@localdomainsacl = ( ".$mydomain", readhash("/etc/postfix/virtualdomains"));
However, this does not include my local aliases. There doesn't seem to be a hash table where these local aliases are stored, rather they are stored in main.cf as:
mydestination = $myhostname,localhost.$mydomain,etc., etc.
I tried this in amavisd.conf but amavisd wouldn't start:
@localdomainsacl = ( ".$mydomain", "$mydestination", readhash("/etc/postfix/virtualdomains"));
It seems amavisd.conf doesn't understand postfix's main.cf's $mydestination variable.
Does anyone know a non-double-entry method I can use to get virus scanning on these local aliases without including the relay_domains?

This line:
readhash(%localdomains, '/var/amavis/local_domains');
doesn't necessarily need to read from that file at that path.
There are probably 100 ways to do this, and this may not be the best... I haven't tried this solution, but just off the top of my head.....
if what you need is a combinatin of your virtualmailboxdomains and your my_destination, write a script which combines virtualmailboxdomains and postconf mydestination into a single file, then hashes it. Should be pretty straightforward.
Then use:
readhash(%localdomains, '/var/amavis/local_domains');
with correct path of course.
Jeff

Similar Messages

  • Are there any recommendations for virus checking/removal programs for the Mac?

    Is there any recommendations for virus checking/removal programs for the iMac and MacBrook Pro running OS 10.6.7?

    as has been said, you need no AV on your Mac. more info here: Mac Virus/Malware Info.
    if, however, you exchange files with windows users on a regular basis, you might want to install ClamXav lest you pass an infected file on without realizing it.

  • Spam & Virus check only - no user accounts

    I am trying to use one of my OS X Server boxes as a spam/virus filter only. I want it to listen on port 25 and relay to the same machine port 325 to hit another SMTP server. I have entered all of my domains and sub-domains into the virtual domains screen. I have not set up any user accounts.
    I see that I can set outgoing SMTP relaying through the GUI and it does seem to accept xxx.xxx.xxx.xxx:325 as a format - but I am not sure that this is legal. Is it? I also found in the archives that this may have to be hand written into the config file as the GUI does not enter relay values correctly. Is this still true in 10.4.4?
    How do I force all incoming mail to pass through the server and automatically send on to the outgoing SMTP. This is kind of like a backup mail server that accepts mail and relays it on when the primary comes back on line. Please point me to the config file if that is where I need to be editing.
    Dean
    Dual G5 2GHz Mac OS X (10.4.4)

    I continued work on this issue today. First, I checked and the three User account folders were present in the Users folder along with the one new account created as part of the Mac OSX Tiger A&I. For some reason, not one of these 4 was accessible from the Login screen; it acted exactly if there were no user accounts.
    Purchased and installed DiskWarrior 4 on the FW drive and rebuilt the directory of the iMac's internal drive. Ran all other tests available w/ DW. Still no joy on logging in. I should NOT have had to see the Login screen at all if the new user had been created properly.
    Punted. Copied everything I thought I would need to the external drive, then did an Erase & Install of OS X Tiger. Applied all updates, no problems logging in. Copied all the original User/username files and folders and restored a few apps.
    Finally, after much wasted time, I have all but one App running and all data files, folders, pics, music restored.
    Adobe Photoshop Elements 3.0 fails because I apparently failed to save a .plist file somewhere and now I learn too late that PE 3.0 will not install on a 10.4.x system. Sigh.

  • Credit Check not occurring for Customer with Partial Credit limit existing

    Hi,
    I have a scenario
    1) where, if credit limit is crossed, then on creation of order I get an credit check even when i have not entered materials in sales order.
    2) Partial Credit limit is pending (for e.g Credit limit of 100, 50 is still pending) when i create a new order with unconfirmed quantity, for amount 100, there is no credit check happening. (system should give message for extra amount 50)
    Can I please get guidance on this issue.(2nd point)
    Thanks & Regards,
    Ganesh.

    HI Ganesh,
    Your issue is not clear. What do you mean by
    2) Partial Credit limit is pending (for e.g Credit limit of 100, 50 is still pending) when i create a new order with unconfirmed quantity, for amount 100, there is no credit check happening. (system should give message for extra amount 50)
    Please explain clearly
    Thanks
    Jobi

  • Exception occurred for Desktop.mail in JDIC

    Hi All,
    I em encountering with
    Exception in thread "main" java.lang.UnsupportedOperationException: Current system default mailer is not supported.
    at org.jdesktop.jdic.desktop.internal.impl.ServiceManagerStub.getService(Unknown Source)
    at org.jdesktop.jdic.desktop.internal.ServiceManager.getService(Unknown Source)
    at org.jdesktop.jdic.desktop.Desktop.mail(Unknown Source)
    at TestOpen.main(TestOpen.java:29)What might be the problem and how can i solve it??
    Thanks in advance.
    regards,
    Viswanadh

    In case anybody was looking at this and wanted to know the result, there is an undocumented limit to how many characters can be inserted into the "body=" portion of the mailTo URI. (I figured out it was around 1700 characters in my case). To solve my specific problem, I had to delete the stack trace and allow the user to copy/paste it in, since we didn't want to use JavaMail for attachment capabilities.

  • Outgoing SMTP for Mac Mail Authentication (none or password)?

    i have had to set up a test account due to some corruption issues and i have a new temporary password for iCloud.
    and i am in the outgoing SMTP > ADVANCED section of mail.
    does anyone know if i set up a SMTP server for Mac Mail as having an authentication set to "none" or set to "password" and whether this password should be my new temp pass?

    If your ISP requires POP before SMTP authentication which requires checking the account's incoming mail server for new mail before being able to send with the account's SMTP server (checking the account for new mail should be required once per session only), then authentication for the SMTP server should be set to None.
    Go to Mail > Preferences > Accounts and under the account information tab for the account preferences at the SMTP server selection, select the Server Setting button below.
    If Password is selected for SMTP authentication, change it to None and test if this resolves the problem.
    If None is selected and your ISP requires password authentication for their SMTP server, select Password and enter the account's user name and password required for the authentication.

  • Smtp auth. fails for Mac mail but ok for netscpae mail ???

    Hello all,
    I am having some persistent problems with SMTP authentication to send mail from my Mac via my ISP onto the internet.
    What DOES work:
    1. sending and receiving mail from my current ISP account using Netscape mail.
    2. receiving mail from my ISP account using Mac mail
    What DOES NOT work:
    3. sending mail via my ISP using Mac Mail. The error message is that the SMTP authentication failed.
    Yes, I checked the mail port (25) and the smtp address (in plain text ascii)
    Has anyone had a similar problem, where Mac mail failes, but another mail tool succeeds? Has anyone succeeded at getting it to work for Mac mail?
    Thanks,
    Ary
    Powerbook G4   Mac OS X (10.3.9)  

    If your ISP requires POP before SMTP authentication which requires checking the account's incoming mail server for new mail before being able to send with the account's SMTP server (checking the account for new mail should be required once per session only), then authentication for the SMTP server should be set to None.
    Go to Mail > Preferences > Accounts and under the account information tab for the account preferences at the SMTP server selection, select the Server Setting button below.
    If Password is selected for SMTP authentication, change it to None and test if this resolves the problem.
    If None is selected and your ISP requires password authentication for their SMTP server, select Password and enter the account's user name and password required for the authentication.

  • Mail.app won't autocheck for new mail on launch. Why???

    Hi,
    My dad's an internet newbie. I have him set up on my old iMac G4, running 10.4.2 (still need to get him upgraded to 10.4.3). He's using Mail.app with an SBCglobal.net (Yahoo) DSL account.
    The account was set up on his Mac via the wizard that SBC provides for OS X on their install CD. This is the only account he has, and in Mail.app preferences, under Accounts/Advanced, "Enable this account" and "include when automatically checking for new mail" are both checked. Also, under General preferences, he's set to check for new mail every minutes.
    All that being said, as far as I can tell, Mail.app will not automatically log on and check with SBC for new mail upon program launch. He must manually click on the Get Mail button in the toolbar to see his mail.
    I'm utterly stumped! Any ideas? Is there something funky about how SBC/Yahoo handles mail that I need to know about?
    Take care,
    Steve

    It would, because not while asleep. I said it should work correctly after the wakeup.
    Come on, you could add new accounts without a restart of the app. Where is the problem to start the process again after the wakeup?
    I hope you know what timeouts are - why should a server have such big timeouts to register that the machine is online after a few hours? thats not the work of the server.
    Really simple:
    o) machine online: client sends login, IDLE works fine.
    o) machine is asleep, crashes, lost the connection, ...: server tries and tries -> timeout
    o) machine wakes up, comes online again: client sends the login again
    http://tools.ietf.org/html/rfc2177

  • Want to use OSX server as virus/spam filter for existing mail server.

    I have communigate pro completely configured and running on an iMac. hundreds of accounts, all working perfectly. The bummer is that the spam/virus filtering of Communigate Pro is weak, and I'd like to try the one built into my Xserve.
    Right now I have the domain company.com, with two A records for mail.company.com (the communigate pro server) and xserve.company.com (the xserve). And right now the MX record for company.com points to mail.company.com.
    I'd like to switch the MX record for company.com so that it points to xserve.company.com (which I know how to do). The xserve would then reject/delete/catch the spam/viruses and then forward on the remaining "good" messages to mail.company.com. The company.com clients would still get their mail from mail.company.com via Pop/Imap/Webmail.
    Any and all help is truly appreciated!!!

    imho... you may be over-complicating your system and adding additional points of failure to your architecture if you go this route.
    Communigate Pro allows you to run both SpamAssassin 3 and Clamd (the main antivirus/antispamspam tools provided in OSX Server) very easily on your CGPro box.
    MPP Free gives you a nice gui for configuring them.
    http://www.versiontracker.com/dyn/moreinfo/macosx/26139
    Here's install directions I used to get it all working:
    http://www.triksys.com/clamav.htm
    hth,
    b.

  • Mail constantly checks for new mail; downloads same emails repeatedly HELP!

    For the last three days (since 19th), Mail has been downloading the same emails over and over again. I first noticed a problem when about 20 spam emails that usually route to my Junk folder appeared in my Inbox. I thought I had just moved it incorrectly and deleted them, then they appeared again later.
    The mail jogger cycle (next to Inbox) keeps turning and turning like it can't stop checking for new mail. How do I get it to stop?? The emails are multiplying like gremlins in my Inbox and driving me nuts!
    Also, it only downloads new emails when I first open the app. I have to force-quit out of Mail, then reopen, and I will get a couple of new emails, and then ALL THE EMAILS FOR THE LAST THREE DAYS AGAIN.
    Mail was working fine for me until three days ago. The only thing I've changed recently is a Software Update on the 15th for QuickTime and iTunes.
    Please help! I tried to Repair Permissions and it didn't do anything. I also tried removing all messages from the server and that did nothing either.
    Mail Version 2.1
    THANK YOU ANYONE WHO CAN HELP ME!!
    iMac G5   Mac OS X (10.4.7)   2.1 GHz, 512 MB Memory

    UPDATE: I think I got it to stop checking mail. I have Yahoo mail and I checked my email through online Yahoo. I was able to delete a bunch of emails and it suddenly stopped checking for email in the Mail app.
    HOWEVER, it will NOT remove some of my junk emails. I was able to delete over 100+ of them. But one specific message (which I now have 8 copies of) will not go away. It is one of those 'Delivery Status Notification' emails. Is this a virus??
    I've tried Erasing Deleted Messages and Erasing Junk Mail. Neither helps. These emails won't go away.
    Help please! I would be very grateful.

  • An error occurred while sending mail. The mail server responded: 5.7.1 [P4] Message blocked due to spam content in message

    I have been using Thunderbird for a couple of years. On Friday 10 Apr my home email account stopped sending either new messages or replying to incoming emails. In addition I have Thunderbird get my work email and I can send and receive email just fine. I can also send email from my android phone and via the web.
    The message that has started coming up is the following:
    An error occurred while sending mail. The mail server responded: 5.7.1 [P4] Message blocked due to spam content in the message.. Please check the message and try again.
    I have tried reinstalling Thunderbird but nothing changed, I tried changing the port from 25 to 587 to 465 but nothing changed. I do not understand what is going on as on Wednesday Apr 8 everything was working just fine.

    I have just tried ringing RCN and they tell me that because I am not using an RCN email as such they can not help but he suggested that it was a filter in Thunderbird but I have not set any filters and can not see if there are any or how to change them. The only way sending my website url right now is to make it not look like a url. Where do I need to look to solve this as I first wrote last week everything was fine.

  • Bypass spam filters for certain mail addresses

    I am looking for a way to bypass virus checks on mail from a certain mail user (actually system mail sent from a process that we have, so we can trust it).
    I have been playing with the @bypassspam_checksacl = qw( [email protected] ); entry in /etc/amavisd.conf but this doesn't seem to bypass as I would expect.
    Does anyone know if this file might be over riden else where or perhaps if I can bypass in another way?
    Cheers

    Greetings
    there is probably more than one way to skin a cat.
    here is a postfix only method however i'm not sure if it will pass all before amavid. so see the snippit from the amavisd.conf below.
    main.cf
    smtpd_recipient_restrictions = hash:/etc/postfix/spamlovers, .....
    create a file call spamlovers
    [email protected] OK
    biggroup.net OK
    that will prevent all subsequent anti-spam checks from being applied to
    the listed recipient domains/addresses. in short - they want spam, let
    them eat spam.
    ((snip)) amavisd.conf
    # %bypass_virus_checks, @bypass_virus_checks_acl and $bypass_virus_checks_re
    # lookup tables:
    # (this is mainly a time-saving option, unlike virus_lovers* !)
    # Similar in concept to %virus_lovers, a hash %bypass_virus_checks,
    # access list @bypass_virus_checks_acl and regexp list
    $bypass_virus_checks_re
    # are used to skip entirely the decoding, unpacking and virus checking,
    # but only if ALL recipients match the lookup.
    # %bypass_virus_checks/@bypass_virus_checks_acl/$bypass_virus_checks_re
    # do NOT GUARANTEE the message will NOT be checked for viruses - this may
    # still happen when there is more than one recipient for a message, and
    # not all of them match these lookup tables. To guarantee virus delivery,
    # a recipient must also match %virus_lovers/@virus_lovers_acl lookups
    # (but see milter limitations above),
    # NOTE: it would not be clever to base virus checks on SENDER address,
    # since there are no guarantees that it is genuine. Many viruses
    # and spam messages fake sender address. To achieve selective filtering
    # based on the source of the mail (e.g. IP address, MTA port number, ...),
    # use mechanisms provided by MTA if available.
    # Similar to lookup tables controlling virus checking,
    # there exist spam scanning and banned names/types control counterparts:
    # %spam_lovers, @spam_lovers_acl
    # %banned_files_lovers, @banned_files_lovers_acl
    # and:
    # %bypass_spam_checks/@bypass_spam_checks_acl/$bypass_spam_checks_re
    # (but no bypass_banned_checks, as $bypass_decode_parts controls it
    already)
    # See README.lookups for detailsabout the syntax.
    # The following example disables spam checking altogether,
    # since it matches any recipient e-mail address (any address
    # is a subdomain of the top-level root DNS domain):
    # @bypass_spam_checks_acl = qw( . );
    # See README.lookups for further detail, and examples below.
    # $virus_lovers{lc("postmaster\@$mydomain")} = 1;
    # $virus_lovers{lc('[email protected]')} = 1;
    # $virus_lovers{lc('[email protected]')} = 1;
    # $virus_lovers{lc('some.user@')} = 1; # this recipient, regardless of
    domain
    # $virus_lovers{lc('[email protected]')} = 0; # never, even if domain matches
    # $virus_lovers{lc('example.com')} = 1; # this domain, but not its
    subdomains
    # $virus_lovers{lc('.example.com')}= 1; # this domain, including its
    subdomains
    #or:
    # @virus_lovers_acl = qw( [email protected] !lab.xxx.com .xxx.com yyy.org );
    # $bypass_virus_checks{lc('[email protected]')} = 1;
    # @bypass_virus_checks_acl = qw( some.ddd !butnot.example.com
    .example.com );
    # @virus_lovers_acl = qw( [email protected] );
    # $virus_lovers_re = new_RE( qr'(helpdesk|postmaster)@example\.com$'i );
    # $spam_lovers{lc("postmaster\@$mydomain")} = 1;
    # $spam_lovers{lc('[email protected]')} = 1;
    # $spam_lovers{lc('[email protected]')} = 1;
    # @spam_lovers_acl = qw( !.example.com );
    # $spam_lovers_re = new_RE( qr'^user@example\.com$'i );
    # don't run spam check for these RECIPIENT domains:
    # @bypass_spam_checks_acl = qw( d1.com .d2.com a.d3.com );
    # or the other way around (bypass check for all BUT these):
    # @bypass_spam_checks_acl = qw( !d1.com !.d2.com !a.d3.com . );
    # a practical application: don't check outgoing mail for spam:
    # @bypass_spam_checks_acl = ( "!.$mydomain", "." );
    # (a downside of which is that such mail will not count as ham in SA
    bayes db)
    I'm sure anyone of these methods will allow the lovers of the blessed spam to fill their hearts content. Hope you have good hard drives
    --j

  • I cannot send mail. Been so for 2 days. Get the message: An error occurred while sending mail. The mail server responded: Access denied

    When I send message the reply is "Access Denied" and a bunch of gobbly-gook ending with please re-check message. What would I check for? The G-G is of absolutely no value to the human species.
    An error occurred while sending mail. The mail server responded: Access denied...3c61d9886161c1c1b119b169f84d0c00bd1d41014c8da58d391805d17cbcdccd89e9557dcc85058535d178217d0831cc6d65.... Please check the message and try again.
    So what now. Mozilla must be the offspring of Microsoft in that help NEVER HELPS, EVER.

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings and disables most add-ons (extensions and themes).
    ''(If you're using an added theme, switch to the Default theme.)''
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu by clicking on the '''Restart with Add-ons Disabled...''' menu item:<br>
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.
    Thank you.

  • I am getting this message: An error occurred while sending mail. The mail server responded: 5.3.4 Requested action not taken; To send your message, please sign into your account online first and solve a puzzle. (Sorry for the inconvenience--these puzzles

    I am trying to send a message with an attachment, I get this message: An error occurred while sending mail. The mail server responded: 5.3.4 Requested action not taken; To send your message, please sign into your account online first and solve a puzzle. (Sorry for the inconvenience--these puzzles help us stop spammers.). Please check the message and try again.
    == Today

    Me too (with Thunderbird). EXCEPT it reads
    Requested action not taken; This account is currently blocked from sending messages. If you don't think you've violated the Windows Live Terms of Use, please contact customer support...
    Occasionally the mail "sends", but it is unpredictable. Tech Support at Qwest (for q.com under Windows Live) does not find a problem at their end.
    More suspiciously, the same account accessed from my Mac does not seem to exhibit this problem. Have reloaded T'bird. Recurred again.

  • An error occurred while sending mail. The mail server responded: Administrative prohibition. Please check the message and try again.

    An error occurred while sending mail. The mail server responded: Administrative prohibition. Please check the message and try again.
    Somtimes it says it spam also......

    The error message is being generated by your email provider's server. Best to ask them what they do not like about your messages and how to solve the problem.

Maybe you are looking for

  • I need the code to delete record in the database not in the form???

    I need the code to delete record in the database not in the form... because when i execute a form always insert the datas in the data base but i want insert value on a text file and delete in the data base the record whith this value of text file. i'

  • Multiple Tax in an Invoice

    Hi All, Please i need to know how i can implement the following:- i want to implement tax in an Invoice document in such that i can deduct 2 separate tax and also Witholding Tax at Payment level. i. e . 1. VAT - 5% of Net at Invoice Category -> link

  • Transferring music on the ipod back to a Mac

    I am using a Shuffle and love it. I have all my data on my IBM PC and now am using a G4. I really want to just download my shuffle playlist into the established iTunes on the Mac but it doesn't seem quite as easy as plug and play. Any suggestions for

  • Form Ora-04067 Error

    Hi, I am using the following architechture. DB server HP UX unix11i Itanium 64 bit--> DB version in 10.2.0.1.0 AS server HP UX unix11i Itanium 64 bit--> 10G AS R2. While trying to logging into my application when the Database package call is happenin

  • Checking credentials with "connection.openProxySession" method

    Our project has a WebLogic instance with a connection pool, which hits an Oracle database. When users authenticate, we want to verify their credentials with the database. Previously, this was done circumventing the connection pool, and opening a dire