Go Back   Technology Questions > Software Questions > Operating System Questions > Linux

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 07-25-2008, 06:20 AM
linuxnewbie1234
Tablet PC Guest
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 07-25-2008, 06:20 AM
Xploder HD Movie Player for PS3. Manage, convert and transfer media files between the PC and PS3.
  #2 (permalink)  
Old 07-25-2008, 06:20 AM
J.O. Aho
Tablet PC Guest
 
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 07-25-2008, 06:20 AM
Steve Ackman
Tablet PC Guest
 
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm spares for two array sizes kunt Linux 0 02-24-2008 03:00 PM
Explain mdadm --examine linuxnewbie1234 Linux 0 07-19-2007 10:21 AM
Tablet PC Mailer through EmailCounts LPH Announcements 0 09-02-2004 02:10 PM
The Mailer markd Tablet PC - Sandbox (Chit Chat) 5 01-18-2004 10:52 AM
The First Tablet PC Questions Mailer LPH Announcements 1 01-18-2004 08:53 AM


All times are GMT -8. The time now is 02:21 PM.


2003 - 2008 All Rights Reserved. Technology Questions

SEO by vBSEO 3.1.0