Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
simple ssmtp mail is sent but mdadm mail test fails [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4941

PostPosted: Thu Aug 02, 2012 7:12 pm    Post subject: simple ssmtp mail is sent but mdadm mail test fails [solved] Reply with quote

Hello All,

I've setup a mail notification on my sw raid but when I try to invoke the test mail I get this:
Code:
dagg@NCC-5001-D ~ $ Su mdadm --monitor --scan --test
^[[D/sendmail: 550 5.7.1 Sorry, your envelope sender has been denied ( http://portal.gmx.net/serverrules ) {mp-us011}
/sendmail: 550 5.7.1 Sorry, your envelope sender has been denied ( http://portal.gmx.net/serverrules ) {mp-us010}
/sendmail: 550 5.7.1 Sorry, your envelope sender has been denied ( http://portal.gmx.net/serverrules ) {mp-us010}


thing is, that following works:
Code:
dagg@NCC-5001-D ~ $ echo test | mail -v -s "testing ssmtp setup" *****@gmx.com[<-] 220 mail.gmx.com GMX Mailservices ESMTP {mp-us010}
[->] EHLO NCC-5001-D
[<-] 250 STARTTLS
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] ZGFnZ3NAZ214LmNvbQ==
[<-] 334 UGFzc3dvcmQ6
[<-] 235 2.7.0 Go ahead {mp-us010}
[->] MAIL FROM:<*****@gmx.com>
[<-] 250 2.1.0 ok {mp-us010}
[->] RCPT TO:<*****@gmx.com>
[<-] 250 2.1.5 ok {mp-us010}
[->] DATA
[<-] 354 mail.gmx.com Go ahead {mp-us010}
[->] Received: by NCC-5001-D (sSMTP sendmail emulation); Thu, 02 Aug 2012 22:10:01 +0300
[->] From: *****@gmx.com
[->] Date: Thu, 02 Aug 2012 22:10:01 +0300
[->] To: *****@gmx.com
[->] Subject: testing ssmtp setup
[->]
[->] test
[->] .
[<-] 250 2.6.0 Message accepted {mp-us010}
[->] QUIT
[<-] 221 2.0.0 GMX Mailservices {mp-us010}


my config is as follow:
Code:
MAILADDR *****@gmx.com
ARRAY /dev/md/1 metadata=1.2 name=sysresccd:1 UUID=adfe9349:3f77db57:4fcd9c73:f7cf98e8
ARRAY /dev/md0 metadata=0.90 UUID=9cda2132:e524c460:c44c77eb:7ee19756
ARRAY /dev/md2 metadata=0.90 UUID=0ff01507:0f5f9e92:c44c77eb:7ee19756


any ideas?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball


Last edited by DaggyStyle on Fri Aug 03, 2012 7:27 am; edited 1 time in total
Back to top
View user's profile Send private message
broken_chaos
Guru
Guru


Joined: 18 Jan 2006
Posts: 370
Location: Ontario, Canada

PostPosted: Thu Aug 02, 2012 7:26 pm    Post subject: Reply with quote

Try setting MAILFROM in mdadm's config to something sane. It looks like the mail's getting rejected because of originating from something like root@localhost or whatever it's defaulting to.
Back to top
View user's profile Send private message
DaggyStyle
Advocate
Advocate


Joined: 22 Mar 2006
Posts: 4941

PostPosted: Fri Aug 03, 2012 7:30 am    Post subject: Reply with quote

solved by setting MAILADDR and MAILFROM to the same gmx account name.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum