Archive for February, 2008

Zimbra alias domains vs. individual aliases

February 08th, 2008 | Category: Zimbra

One of the things I love about Zimbra as an administrator is the fact that it includes some decent graphing functionality in the administration interface. I can quickly see the health of my Zimbra servers and the affects of any configuration updates I’ve made.

Many companies and other organizations these days have multiple domains, and they want to be able to receive mail for the same addresses (local parts) at each domain. The standard way to handle this in Zimbra is to create an “Alias Domain”, or a domain with the zimbraDomainType set to “alias” and the zimbraMailCatchAllAddress and zimbraMailCatchAllForwardingAddress attributes set appropriately. Since Zimbra uses Postfix as its underlying MTA, this translates to setting:

@aliasdomain    @realdomain

in your virtual alias table. Herein lies the problem with doing that: using this sort of aliasing bypasses Postfix’s ability to properly check for valid addresses.

When Postfix, and hence Zimbra, begins receiving a message, in a normal configuration, it will check its final delivery tables (local, virtual, etc) to see if the recipient in question exists. If the recipient does exist, the message will be accepted. If the recipient doesn’t exist, Postfix will reject the message before queuing it. This is exactly what you want to happen when (not if) your server gets hit with a dictionary-style spam run. In this case, the sender is trying lots of addresses that don’t exist, so you want your mail server to reject them without processing them, since processing them likely includes sending them through your CPU-intensive spam and virus filtering systems. Postfix, however, only performs a one-level check to see if the recipient exists. By one level, I mean that Postfix only looks to see if any mailboxes or aliases exist without seeing what those aliases might result in. Because of this, Postfix will see that a catchall alias exists for a certain domain and decide that a match exists without seeing whether or not the target of that alias is valid, and, therefore, accepts the message for processing. This is actually correct behavior since its impossible to tell if an alias actually translates to a valid recipient in many cases, but it can have dire consequences for your mail server. It can even mean that your mail server can be blacklisted for sending out tons of non-deliverable reports for users who don’t exist, since many spam bots use invalid sender addresses as well.

To combat this problem on my Zimbra servers, I recently wrote a simple script that creates actual one-to-one aliases. One-to-one aliases, as opposed to catchall aliases, allow the Postfix server to reject messages for non-existant recipients since an alias won’t exist for that recipient. The script periodically runs through the Zimbra LDAP store and finds all addresses in the designated primary/real domain. It then checks for existing aliases in any domain that is “attached” (as opposed to aliased) to the primary domain. Any aliases that don’t exist get created, and any aliases that exist for addresses in the primary domain that no longer exist get deleted. Pretty simple in the end, but the results have been excellent. Below is a graph of the messages processed by the Zimbra Amavis (spam catching) process. Green represents the total number of messages processed, and blue represents the number of spam messages. As you can see, since the script was put in place four days ago, the amount of noise that is now being outright rejected and no longer processed due to this one seemingly simple change is pretty amazing.

Spam Activity Graph

1 comment

  • on line pharmacies
  • prices soft tab cialis
  • treatment for depression and anxiety
  • skin treatments
  • cialis britan
  • gout relief
  • where can i get pain medication
  • light cure for pain
  • natural arthritis cures
  • buy cheapest cialis
  • prescription drugs without a prescription
  • about cialis
  • blood pressure diet
  • medicine for nausea
  • canadian pharmacys
  • fluconazole interaction
  • treatment of prostate cancer
  • acai berry extract
  • canadian pet products
  • lipitor drug
  • treatment of stroke
  • dogs health
  • smoking cure
  • cheap tramadol cod
  • increase male sexual power
  • on line drug stores
  • stress reliever
  • buy avandia
  • blood clots
  • high blood pressure drug
  • help for nausea
  • viagra generic cheap
  • healthy pet treat
  • buy cialis paypal
  • depression help
  • phentermine without a perscription
  • order condoms online
  • new products for hair loss
  • dosage cipro
  • helping high blood pressure
  • women's health products
  • kamagra generic
  • cure for aids
  • where can i buy prescription medicine
  • information on gout
  • sleep disorders treatment information
  • cheap uroxatral
  • help with sleep
  • levitra online
  • how does levitra work
  • skin allergies
  • natural cholesterol control
  • how to prevent diabetes
  • soma no prescription
  • cheap generic soma
  • menopause aids products
  • sleep disorders medicine
  • singulair generic
  • hip pain in dogs
  • bronchitis cure
  • what valium does
  • abnormal heart rhythms
  • order medication
  • buy cialis tadalafil
  • permanent hair loss
  • weight loss exercise
  • women's fertility
  • prozac for depression
  • cheapest diet pill
  • insomnia depression
  • buy generic cialis
  • how to cure high blood pressure
  • weight loss on line
  • treatments for menopause
  • depakote overdose
  • online pain management
  • metformin tablet
  • buy cheap paxil online
  • levitra without a prescription
  • high blood pressure drug facts
  • how to control high blood pressure
  • relief for ear pain
  • how do you prevent bone loss
  • atarax generic
  • new weight loss products
  • wellbutrin cymbalta
  • canadian drug store
  • the cialis
  • high blood calcium level
  • flu treatment
  • new drugs for diabetes
  • weight loss exercise
  • azithromycin penicillin
  • buy online viagra viagra
  • skin itching
  • use viagra
  • chlamydia
  • medical pet products
  • which antibiotics treat chlamydia
  • body building buy product
  • reduce high cholesterol
  • phentermine without a perscription
  • online pain medicine doctors
  • on line pharmacies
  • blood pressure monitoring
  • anti swelling drugs
  • wholesale dog products
  • high blood calcium levels
  • blue pills
  • weight loss diets
  • anxiety drugs
  • simply weight loss
  • pain drug
  • treating dependent edema
  • new treatments for diabetes
  • online stop smoking
  • herpes treatment
  • abscess infection cats
  • hair loss
  • no prescription medicine
  • healthy pets
  • adhd and medications
  • safest weight loss pill
  • discount birth control perscriptions
  • dog thyroid
  • preventing hair loss
  • what is lipitor
  • cheap cialis india
  • phentermine day
  • diet supplements
  • new drugs for depression
  • buy cheap amoxil without prescription
  • man health
  • cheap online prescription drugs
  • cure treat itch itching
  • medication for high blood pressure
  • cheap loss medication weight
  • buy vitamin supplement online
  • congested heart failure
  • online pharmacies in mexico
  • treatment of hypothyroidism
  • effective over the counter strength supplements
  • fastest way to burn fat
  • chronic arthritis
  • nexium pharmacy
  • voltaren 100mg
  • congestive heart failure online
  • diuretic medicines
  • disease of the skin
  • hair loss natural treatment
  • arthritis help
  • how to increase fertility
  • repels insects
  • online pharmacy
  • buy prescription drugs online
  • depression and insomnia
  • chlamydia antibiotics
  • viagra on line
  • diabetes care
  • usa pharmacy
  • human parasite
  • order pain meds without prescription
  • water pills
  • congested heart failure
  • azithromycin bronchitis
  • help for infertility
  • nextday soma
  • blood sugar
  • skin psoriasis
  • how to get white teeth
  • levitra dosing
  • high cholesterol treatment
  • cetirizine drug
  • buy cialis without prescription
  • whitening teeth
  • mail order pharmacies
  • safe healthy dog food
  • order medicine from canada
  • anti depressant
  • cancer treatment drugs
  • weight loss doctor
  • cialis consultation
  • acne tips
  • high blood pressure in women
  • erectile dysfunction cure
  • cialis canada pharmacy
  • uk online pharmacy
  • condom sales
  • body building tips
  • depakote 250mg
  • blood pressure information
  • expected weight loss with phentermine
  • new diabetes medicines
  • schizophrenia treatment
  • cure for pain
  • stop smoke
  • dog treatments
  • cancer medications
  • pet meds
  • skin treatments