jojo's blog--快樂憂傷都與你同在
          為夢想而來,為自由而生。 性情若水,風起水興,風息水止,故時而激蕩,時又清平……
          posts - 11,  comments - 30,  trackbacks - 0
          Paul Howarth wrote:
          > On Thu, 2005-07-21 at 10:03 +0200, Andreas Wahlert wrote:
          >
          >>Paul Howarth wrote:
          >>
          >>>On Thu, 2005-07-21 at 09:35 +0200, Andreas Wahlert wrote:
          >>>
          >>>
          >>>>i have script which sends e-mail to me. How can i specify a complete
          >>>>sender address like "boom@work.de"?? i see in my mailclient only senders
          >>>>such "nagios@localhost.localdomain". On my host ist FC3 installed "out
          >>>>of the box"
          >>>
          >>>
          >>>Do you want *all* mail originating from scripts on this machine to have
          >>>a "work.de" address, or just mail originating from nagios?
          >>>
          >>>Does this mail need to be sent over the Internet? If so, you will need a
          >>>valid envelope sender domain instead of localhost.localdomain. What type
          >>>of Internet connection do you have (dialup, always-on, static/dynamic?).
          >>>
          >>>The configuration is best done in sendmail, which will then work for all
          >>>programs, not just "mail".
          >>>
          >>>Paul.
          >>
          >>
          >>It's only a host for Monitoring. There runs "Fujitsu ServerView" and
          >>"nagios" That means "work.de" is enough for all. The script send only
          >>notifications mail to my internal mailserver.
          >>
          >>
          >>Where can i do this configuration in sendmail??
          >
          >
          > # yum install sendmail-cf
          >
          > Edit /etc/mail/sendmail.mc and change:
          >
          > dnl MASQUERADE_AS(`mydomain.com')dnl
          >
          > to:
          >
          > MASQUERADE_AS(`work.de')dnl
          >
          > If you want to be able to rewrite "nagios" as "boom", you should also
          > add:
          >
          > FEATURE(`genericstable',`hash -T<TMPF> /etc/mail/genericstable')dnl
          >
          > just below the existing line:
          >
          > FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
          >
          > Then create a file /etc/mail/genericstable containing the line:
          >
          > nagios boom@work.de
          >
          > Then run "make -C /etc/mail; service sendmail reload"
          >
          > I think that should do what you want.
          >
          > Paul.


          wow,



          now it works.

          sendmail is really tricky. i have found a nice howto to switch to
          postfix. I guess it's better for me, to have a postfix on this machine.
          There i'm understanding what i'm doing :-))



          posted on 2009-06-06 09:53 Blog of JoJo 閱讀(274) 評論(0)  編輯  收藏 所屬分類: 每日一記

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          常用鏈接

          留言簿(6)

          隨筆檔案

          文章分類

          文章檔案

          新聞分類

          新聞檔案

          相冊

          收藏夾

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 丹阳市| 沂源县| 密云县| 上林县| 双桥区| 五大连池市| 永嘉县| 林芝县| 时尚| 德安县| 加查县| 武安市| 新泰市| 双牌县| 綦江县| 会理县| 襄城县| 滨州市| 枣庄市| 九江县| 鹿邑县| 清流县| 松阳县| 论坛| 黎平县| 三穗县| 灵宝市| 拜泉县| 翼城县| 攀枝花市| 青田县| 福海县| 眉山市| 枣强县| 监利县| 河西区| 新巴尔虎右旗| 育儿| 和林格尔县| 泉州市| 桃源县|