Configuring the Solaris-supplied version of Sendmail

Okay, I don’t really like just ripping stuff off like this … but this was perfect and I didn’t want to lose track of it.

Brandon Hutchinson has some awesome stuff in his site … this was one of them:

I will configure the version of Sendmail (8.11.7) that was installed by default on a Solaris 8 system. Sendmail will be configured to use header sender and envelope sender address masquerading and a “smart host.”

On Solaris 9, substitute main.mc for main-v7sun.mc in the instructions.

1. Change to the directory containing the Sendmail configuration files.
cd /usr/lib/mail/cf

2. Make a copy of main-v7sun.mc as sendmail.mc, and make modifications to sendmail.mc.
cp main-v7sun.mc sendmail.mc

3. Configure sendmail.mc. In this example, we want to use the “smart host” smart_host.example.com and masquerade both the header sender and envelope sender addresses as example.com.

vi sendmail.mc

Insert the following entries before the MAILER lines:

define(`SMART_HOST’, `
smart_host.example.com’)
MASQUERADE_AS(`example.com‘)
FEATURE(`masquerade_envelope’)

4. Build the sendmail.cf file from the sendmail.mc file.
# /usr/ccs/bin/m4 ../m4/cf.m4 sendmail.mc > sendmail.cf

5. Test the sendmail.cf file.
/usr/lib/sendmail -bt -C./sendmail.cf

Make sure that root is an “exposed user.” An exposed user is a user that will not be masqueraded. This is used when accounts, such as root, are not unique across systems.

> $=E
root

Test header sender and envelope sender masquerading:
> /tryflags HS
> /try esmtp user@host.example.com
Rcode = 0, addr = user@example.com

> /tryflags ES
> /try esmtp user@host.example.com
Rcode = 0, addr = user@example.com

6. Backup the existing sendmail.cf file.
cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.date

7. Install the new sendmail.cf file.
cp sendmail.cf /etc/mail/sendmail.cf

8. Sendmail the Sendmail process a SIGHUP to begin using the new configuration file.
kill -HUP `head -1 /var/run/sendmail.pid`




You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

84 Responses to “Configuring the Solaris-supplied version of Sendmail”

  1. EDWIN Says:

    Pillspot.org. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.PillSpot.org. Vitamins@buy.online” rel=”nofollow”>.…

    Categories: Pain Relief.Stomach.Anxiety/Sleep Aid.Eye Care.Mens Health.Antiviral.Antidepressants.Skin Care.Antibiotics.Weight Loss.Mental HealthAnti-allergic/Asthma.Vitamins/Herbal Supplements.Blood Pressure/Heart.Stop SmokingWomens Health.Antidia…

  2. LEROY Says:


    MedicamentSpot.com. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. No prescription drugs. Buy pills online

    Buy:Prozac.Amoxicillin.Female Pink Viagra.Wellbutrin SR.Cozaar.Female Cialis.Lasix.Zocor.Advair.SleepWell.Seroquel.Lipothin.Acomplia.Lipitor.Benicar.Nymphomax.Ventolin.Aricept.Zetia.Buspar….

  3. LAWRENCE Says:


    CheapTabletsOnline.Com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. Low price pills. Order drugs online

    Buy:Zyban.Lumigan.Synthroid.Human Growth Hormone.100% Pure Okinawan Coral Calcium.Mega Hoodia.Zovirax.Retin-A.Prednisolone.Valtrex.Actos.Accutane.Petcam (Metacam) Oral Suspension.Arimidex.Nexium.Prevacid….

  4. SERGIO Says:


    CheapTabletsOnline.com. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. High quality drugs. Order pills online

    Buy:Female Cialis.Aricept.Seroquel.Advair.Benicar.Prozac.Wellbutrin SR.Lipitor.Nymphomax.Cozaar.Zocor.Amoxicillin.Female Pink Viagra.Buspar.Acomplia.Lipothin.SleepWell.Zetia.Lasix.Ventolin….

  5. MATHEW Says:


    CheapTabletsOnline.com. Canadian Health&Care.No prescription online pharmacy.Special Internet Prices.Best quality drugs. Low price drugs. Order pills online

    Buy:Benicar.Ventolin.Cozaar.Amoxicillin.Buspar.Aricept.Wellbutrin SR.Advair.Seroquel.Female Pink Viagra.Female Cialis.Acomplia.Prozac.Lasix.Lipitor.Nymphomax.Lipothin.SleepWell.Zocor.Zetia….

  6. CORY Says:


    NEW FASHION store. Original designers collection at low prices!!! 20 % TO 70 % OFF. END OF SEASON SALE!!!

    BUY FASHION. TOP BRANDS: GUCCI, DOLCE&GABBANA, BURBERRY, DIESEL, ICEBERG, ROBERTO CAVALLI, EMPORIO ARMANI, VERSACE…

  7. JESUS Says:

    ████████►BUY VIAGRA◀███████…

    ████████▲▲▲▲▲▲▲▲▲████████…

  8. CHARLIE Says:

    ████████►BUY CIALIS◀████████…

    ▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲…

  9. JUAN Says:

    Accupril

    Buygeneric drugs…

  10. TERRANCE Says:

    Abilify

    Buygeneric meds…

  11. GABRIEL Says:

    Abilify

    Buygeneric pills…

  12. LAWRENCE Says:

    Buygeneric meds…

  13. RICARDO Says:

    fosamax@actonel.now” rel=”nofollow”>.

    Buynow…

  14. JOHN Says:

    shimmy@adalat.simone” rel=”nofollow”>..

    Buyit now…

  15. RALPH Says:

    Aleve@official.site” rel=”nofollow”>..

    Buyit now…

  16. SHAWN Says:

    fruite@of.the.earth.aloe.vera.juice.sale” rel=”nofollow”>…

    Buynow…

  17. CHRISTIAN Says:

    Avelox@official.site” rel=”nofollow”>…

    Buyno prescription…

  18. JESSIE Says:

    avodart@dosage.now” rel=”nofollow”>..

    Buygeneric meds…

  19. BRIAN Says:

    buy@cheap.viagra.in.uk” rel=”nofollow”>.

    Buywithout prescription…

  20. JULIUS Says:

    generic@prescription.cialis.drug.availability” rel=”nofollow”>.

    Buygeneric drugs…

  21. ROLAND Says:

    prozac@dangers.now” rel=”nofollow”>..

    Buygeneric drugs…

  22. BRETT Says:

    Buynow it…

  23. HARVEY Says:

    Zyvox@official.site” rel=”nofollow”>..

    Buygeneric pills…

  24. RONALD Says:

    Depakote@official.site” rel=”nofollow”>.

    Buygeneric drugs…

  25. DENNIS Says:

    Depakote@official.site” rel=”nofollow”>.

    Buygeneric drugs…

  26. EDWARD Says:

    zyban pill

    Buywithout prescription…

  27. ROLAND Says:

    xeloda information.gov

    Buyit now…

  28. LARRY Says:

    buy zithromax online

    Buyno prescription…

  29. JAVIER Says:

    buy zinc anode everett wa

    Buygeneric meds…

  30. ARTHUR Says:

    other names for trazodone

    Buyno prescription…

  31. VIRGIL Says:

    Zetia

    Buyno prescription…

  32. TRAVIS Says:

    zantac infant

    Buyit now…

  33. LONNIE Says:

    quinapril

    Buyit now…

  34. NEIL Says:

    Zocor

    Buygeneric drugs…

  35. KARL Says:

    Vitamin B

    Buydrugs without prescription…

  36. REX Says:

    Lexapro

    Buygeneric drugs…

  37. ANDY Says:

    Vitamin B

    Buynow it…

  38. MATHEW Says:

    where to buy lamisil

    Buygeneric drugs…

  39. DANA Says:

    pharmacokinetics of zyrtec

    Buyit now…

  40. MARK Says:

    Risperdal

    Buyit now…

  41. ALEX Says:

    arthritis orlistat

    Buyno prescription…

  42. RAFAEL Says:

    Eye Drops

    Buynow…

  43. NICHOLAS Says:

    Omnicef

    Buynow it…

  44. JULIUS Says:

    Ribavirin

    Buygeneric drugs…

  45. ELMER Says:

    Rogaine

    Buygeneric meds…

  46. JESSIE Says:

    Synthroid

    Buygeneric pills…

  47. VIRGIL Says:

    Retin A

    Buywithout prescription…

  48. LONNIE Says:

    Remeron

    Buyno prescription…

  49. ALEX Says:

    purim suddah

    Buygeneric meds…

  50. RICARDO Says:

    Seroquel

    Buygeneric drugs…

  51. OTIS Says:

    how much benadryl to take with zyrtec

    Buydrugs without prescription…

  52. ROBERTO Says:

    can i take expired zyrtec

    Buygeneric drugs…

  53. CLINTON Says:

    Eye Drops

    Buyno prescription…

  54. JULIO Says:

    savella cheap canada

    Buyno prescription…

  55. DUANE Says:

    savella diabetes blood sugar

    Buygeneric drugs…

  56. CLIFTON Says:

    Paxil

    Buygeneric drugs…

  57. JONATHAN Says:

    Pulmicort@Pulmicort.Pulmicort” rel=”nofollow”>.

    Buynow it…

  58. JULIO Says:

    Synthroid@Synthroid.Synthroid” rel=”nofollow”>.

    Buynow it…

  59. WARREN Says:

    Purim@Purim.Purim” rel=”nofollow”>..

    Buynow…

  60. ADRIAN Says:

    Synthroid@Synthroid.Synthroid” rel=”nofollow”>..

    Buynow it…

  61. PAUL Says:

    symbicort@official.us.website” rel=”nofollow”>…

    Buygeneric drugs…

  62. ANDY Says:

    Spiriva@Spiriva.Spiriva” rel=”nofollow”>..

    Buyno prescription…

  63. RICKY Says:

    Seroquel@Seroquel.Seroquel” rel=”nofollow”>..

    Buynow it…

  64. WILLIE Says:

    Coumadin@Coumadin.Coumadin” rel=”nofollow”>.

    Buyno prescription…

  65. MORRIS Says:

    Synthroid@Synthroid.Synthroid” rel=”nofollow”>.

    Buynow…

  66. WILLARD Says:

    Seroquel@Seroquel.Seroquel” rel=”nofollow”>..

    Buywithout prescription…

  67. ERNESTO Says:

    Pulmicort@Pulmicort.Pulmicort” rel=”nofollow”>..

    Buygeneric meds…

  68. RICKY Says:

    Buygeneric meds…

  69. FRANKLIN Says:

    .

    Buygeneric pills…

  70. DONALD Says:

    Buywithout prescription…

  71. RAFAEL Says:

    pyridium@can.cause.low.blood.sugar” rel=”nofollow”>.

    Buygeneric drugs…

  72. PHILIP Says:

    chantix@vs.zyban” rel=”nofollow”>..

    Buyit now…

  73. LEE Says:

    reglan@black.box” rel=”nofollow”>…

    Buydrugs without prescription…

  74. ARNOLD Says:

    cipro@causes.problems” rel=”nofollow”>.

    Buygeneric drugs…

  75. MARK Says:

    retin@a.cheap.no.prescription” rel=”nofollow”>..

    Buygeneric drugs…

  76. GEORGE Says:

    .

    Buyno prescription…

  77. JARED Says:

    high@dose.dexamethasone.induction” rel=”nofollow”>..

    Buydrugs without prescription…

  78. HECTOR Says:

    order@altace.cod” rel=”nofollow”>..

    Buynow…

  79. EVERETT Says:

    otc@nasonex.alternative” rel=”nofollow”>…

    Buynow…

  80. HARVEY Says:

    flexeril@gain.weight” rel=”nofollow”>.

    Buygeneric drugs…

  81. LYNN Says:

    premarin@cream.comments” rel=”nofollow”>…

    Buyit now…

  82. JUAN Says:

    Buyno prescription…

  83. JAIME Says:

    Buygeneric drugs…

  84. SALVADOR Says:

    ..

    Buyit now…

Leave a Reply