Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-08-2008, 06:48 PM
linuxnewbie1234
 
Posts: n/a
mdadm mailer does not set envelope-from!

Hi all,
I want to receive an email from mdadm when something happens in the
arrays. I have configured both the MAILADDR and MAILFROM options in
mdadm.conf (see man).

I have configured the local mailserver to relay mail to our ISP
mailserver, and this works, unfortunately the ISP mailserver does not
accept that mail because the From address (in the envelope!) contains no
valid domain.

This is an internal machine of ours which we do not really want to
assign an existing domain to. I assumed that the MAILFROM field could
fix the bogus domain, as it is written in the manual
(from Debian man mdadm.conf)
---------
MAILFROM
The mailfrom line (which can only be abbreviated to at least 5
characters) gives an address to appear in the "From" address for alert
mails. This can be useful if you want to explicitly set a domain, as
the default from address is "root" with no domain.
---------

unfortunately the mailserver doesn't (just) look at the address in the
From field but also looks at the one specified in all the "Received:"
fields, and in particular the first one says:
---
Received: from root by machine.bogusdomain with local (Exim 4.69)
(envelope-from <root@machine.bogusdomain>) id 1KGHY7-0006m1-IeNV for
mdadm_event_notifier_alias@machine.bogusdomain; Tue, 08 Jul 2008
20:04:23+0200
---
and when the ISP mailserver sees this envelope-from address, the email
gets blocked.

I am able to send mails from the same host via commandline like this:

mail destination@address.com -s somesubject -- -f \
modified@sender.address.com

but mdadm apparently does not use this trick.

Does anybody know a workaround?

Can this be considered a bug in mdadm, given the manpage?

Thank you
Reply With Quote
  #2 (permalink)  
Old 07-08-2008, 07:15 PM
J.O. Aho
 
Posts: n/a
Re: mdadm mailer does not set envelope-from!

linuxnewbie1234 wrote:

> and when the ISP mailserver sees this envelope-from address, the email
> gets blocked.
>
> I am able to send mails from the same host via commandline like this:
>
> mail destination@address.com -s somesubject -- -f \
> modified@sender.address.com
>
> but mdadm apparently does not use this trick.
>
> Does anybody know a workaround?
>
> Can this be considered a bug in mdadm, given the manpage?


configure exim to use the proper domain name or get your ISP to
whitelist your server.


--

//Aho
Reply With Quote
  #3 (permalink)  
Old 07-09-2008, 02:28 PM
Steve Ackman
 
Posts: n/a
Re: mdadm mailer does not set envelope-from!

In <4873b687$0$11743$892e0abb@auth.newsreader.octanew s.com>, on Tue, 08
Jul 2008 20:48:33 +0200, linuxnewbie1234, linuxnewbie1234@nowhere.com wrote:

> I am able to send mails from the same host via commandline like this:
>
> mail destination@address.com -s somesubject -- -f \
> modified@sender.address.com
>
> but mdadm apparently does not use this trick.
>
> Does anybody know a workaround?


Besides Aho's suggestions, you could use smarthost.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:01 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109