Menu

linknx, send email

Help
hd88
2009-10-28
2012-12-14
  • hd88

    hd88 - 2009-10-28

    Hello Jeff,

    I observe that the email is not sent.
    I have tested it in debian and ubuntu.

    Is it possible to install a presence simulation?

    Regards,

    Hans

     
  • Rene Jansen

    Rene Jansen - 2010-01-21

    Hallo Hans,

    I had the same problem with the mail. Just put in the ip adress of the smtp server, port 25 (in linknx.xml). It worked for me.

    Kind regards,
    Rene Jansen

     
  • hd88

    hd88 - 2010-01-22

    Hello,
    Thanks for your answer, but because it was not.
    gmx no longer seems to work, I have switched to web.de and it works.
    simulation with the presence of 1 week recording, I've now created with LUA.

    Kind regards,
    Hans Dehne

     
  • Ben

    Ben - 2010-02-06

    Hi all,

    I use linknx on my synology ds207+.
    I've tried several smtp servers, but I can not send email using "send-email" linknx action.
    An idea ?

    Here is  a part of linknx log :
    2010-02-06 13:40:54  Action: Execute SendEmailAction: to=XXXXX subject=TEST
    2010-02-06 13:40:54  EmailGateway: EmailGateway: Done 0 =>

    Kind regards,

    Ben

     
  • hd88

    hd88 - 2010-02-06

    Hello,
    I did the same on debian. I have the email account from at gmx web.de
    changed and it works.

    Hans

     
  • chris_14

    chris_14 - 2010-03-04

    Hello,

    in the past it worked without any problems with my strato.de account. I use the Email function only for alarm messages an today I had an alarm that was not send. When I changed to web.de its working only sometimes! 

    [ INFO] Action: Execute SendEmailAction: to=xxxx subject=Technik-Alarm
    [ INFO] EmailGateway: EmailGateway: Done 0 =>
    

    Any ideas?

     
  • chris_14

    chris_14 - 2010-03-06

    Hello,

    in the meantime i found out, why the Email function worked sometimes with web.de and sometimes not. I logged the communication with smtp.web.de with the tool "tcpdump":

    root@knxweb:~$ tcpdump host smtp.web.de -s 255 -X
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on br0, link-type EN10MB (Ethernet), capture size 255 bytes
    20:48:55.767050 IP 192.168.178.220.1035 > smtp-ha.web.de.25: S 749925158:749925158(0) win 5840 <mss 1460,nop,nop,sackOK,nop,ws
            0x0000:  4500 0034 c513 4000 4006 6845 c0a8 b2dc  E..4..@.@.hE....
            0x0010:  d948 c09d 040b 0019 2cb2 f326 0000 0000  .H......,..&....
            0x0020:  8002 16d0 26e0 0000 0204 05b4 0101 0402  ....&...........
            0x0030:  0103 0300                                ....
    20:48:55.798410 IP smtp-ha.web.de.25 > 192.168.178.220.1035: S 4234356474:4234356474(0) ack 749925159 win 5840 <mss 1380,nop,n
            0x0000:  4500 0034 0000 4000 3706 3659 d948 c09d  E..4..@.7.6Y.H..
            0x0010:  c0a8 b2dc 0019 040b fc63 26fa 2cb2 f327  .........c&.,..'
            0x0020:  8012 16d0 03c1 0000 0204 0564 0101 0402  ...........d....
            0x0030:  0103 0300                                ....
    20:48:55.799029 IP 192.168.178.220.1035 > smtp-ha.web.de.25: . ack 1 win 5840
            0x0000:  4500 0028 c514 4000 4006 6850 c0a8 b2dc  E..(..@.@.hP....
            0x0010:  d948 c09d 040b 0019 2cb2 f327 fc63 26fb  .H......,..'.c&.
            0x0020:  5010 16d0 443c 0000                      P...D<..
    20:48:55.835557 IP smtp-ha.web.de.25 > 192.168.178.220.1035: P 1:76(75) ack 1 win 5840
            0x0000:  4500 0073 3656 4000 3706 ffc3 d948 c09d  E..s6V@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 26fb 2cb2 f327  .........c&.,..'
            0x0020:  5018 16d0 f950 0000 3232 3020 736d 7470  P....P..220.smtp
            0x0030:  3037 2e77 6562 2e64 6520 4553 4d54 5020  07.web.de.ESMTP.
            0x0040:  5745 422e 4445 2056 342e 3131 3023 3331  WEB.DE.V4.110#31
            0x0050:  3420 5361 742c 2030 3620 4d61 7220 3230  4.Sat,.06.Mar.20
            0x0060:  3130 2032 303a 3438 3a35 3520 2b30 3130  10.20:48:55.+010
            0x0070:  300d 0a                                  0..
    20:48:55.836056 IP 192.168.178.220.1035 > smtp-ha.web.de.25: . ack 76 win 5840
            0x0000:  4500 0028 c515 4000 4006 684f c0a8 b2dc  E..(..@.@.hO....
            0x0010:  d948 c09d 040b 0019 2cb2 f327 fc63 2746  .H......,..'.c'F
            0x0020:  5010 16d0 43f1 0000                      P...C...
    20:48:55.836935 IP 192.168.178.220.1035 > smtp-ha.web.de.25: P 1:14(13) ack 76 win 5840
            0x0000:  4500 0035 c516 4000 4006 6841 c0a8 b2dc  E..5..@.@.hA....
            0x0010:  d948 c09d 040b 0019 2cb2 f327 fc63 2746  .H......,..'.c'F
            0x0020:  5018 16d0 3fee 0000 4548 4c4f 206b 6e78  P...?...EHLO.knx
            0x0030:  7765 620d 0a                             web..
    20:48:55.868505 IP smtp-ha.web.de.25 > 192.168.178.220.1035: . ack 14 win 5840
            0x0000:  4500 0028 3657 4000 3706 000e d948 c09d  E..(6W@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 2746 2cb2 f334  .........c'F,..4
            0x0020:  5010 16d0 43e4 0000 ff60 0000 0046       P...C....`...F
    20:48:55.869786 IP smtp-ha.web.de.25 > 192.168.178.220.1035: P 76:205(129) ack 14 win 5840
            0x0000:  4500 00a9 3658 4000 3706 ff8b d948 c09d  E...6X@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 2746 2cb2 f334  .........c'F,..4
            0x0020:  5018 16d0 497b 0000 3235 302d 736d 7470  P...I{..250-smtp
            0x0030:  3037 2e77 6562 2e64 6520 4865 6c6c 6f20  07.web.de.Hello.
            0x0040:  6b6e 7877 6562 205b 3933 2e31 3331 2e33  knxweb.[93.131.3
            0x0050:  312e 3231 305d 0d0a 3235 302d 5349 5a45  1.210]..250-SIZE
            0x0060:  2036 3939 3230 3432 370d 0a32 3530 2d50  .69920427..250-P
            0x0070:  4950 454c 494e 494e 470d 0a32 3530 2d41  IPELINING..250-A
            0x0080:  5554 4820 504c 4149 4e20 4c4f 4749 4e0d  UTH.PLAIN.LOGIN.
            0x0090:  0a32 3530 2d53 5441 5254 544c 530d 0a32  .250-STARTTLS..2
            0x00a0:  3530 2048 454c 500d 0a                   50.HELP..
    20:48:55.871638 IP 192.168.178.220.1035 > smtp-ha.web.de.25: P 14:42(28) ack 205 win 6432
            0x0000:  4500 0044 c517 4000 4006 6831 c0a8 b2dc  E..D..@.@.h1....
            0x0010:  d948 c09d 040b 0019 2cb2 f334 fc63 27c7  .H......,..4.c'.
            0x0020:  5018 1920 6a6a 0000 4d41 494c 2046 524f  P...jj..MAIL.FRO
            0x0030:  4d3a 3cxx xxxx xxxx xxxx 4077 6562 2e64  M:<xxxxxxx@web.d
            0x0040:  653e 0d0a                                e>..
    20:48:55.912909 IP smtp-ha.web.de.25 > 192.168.178.220.1035: P 205:337(132) ack 42 win 5840
            0x0000:  4500 00ac 3659 4000 3706 ff87 d948 c09d  E...6Y@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 27c7 2cb2 f350  .........c'.,..P
            0x0020:  5018 16d0 782b 0000 3530 3120 4b65 696e  P...x+..501.Kein
            0x0030:  6520 4175 7468 656e 7469 6669 7a69 6572  e.Authentifizier
            0x0040:  756e 672c 206f 6465 7220 504f 5033 2d41  ung,.oder.POP3-A
            0x0050:  6e6d 656c 6475 6e67 207a 7520 7765 6974  nmeldung.zu.weit
            0x0060:  2069 6e20 6465 7220 5665 7267 616e 6765  .in.der.Vergange
            0x0070:  6e68 6569 7420 2e20 2f20 4175 7468 656e  nheit.../.Authen
            0x0080:  7469 6669 6361 7469 6f6e 2066 6169 6c65  tification.faile
            0x0090:  642c 206f 7220 504f 5033 206c 6f67 6f6e  d,.or.POP3.logon
            0x00a0:  2074 6f6f 206f 6c64 2e20 0d0a            .too.old....
    20:48:55.913907 IP 192.168.178.220.1035 > smtp-ha.web.de.25: P 42:48(6) ack 337 win 7504
            0x0000:  4500 002e c518 4000 4006 6846 c0a8 b2dc  E.....@.@.hF....
            0x0010:  d948 c09d 040b 0019 2cb2 f350 fc63 284b  .H......,..P.c(K
            0x0020:  5018 1d50 9481 0000 5155 4954 0d0a       P..P....QUIT..
    20:48:55.944418 IP smtp-ha.web.de.25 > 192.168.178.220.1035: P 337:375(38) ack 48 win 5840
            0x0000:  4500 004e 365a 4000 3706 ffe4 d948 c09d  E..N6Z@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 284b 2cb2 f356  .........c(K,..V
            0x0020:  5018 16d0 d437 0000 3232 3120 736d 7470  P....7..221.smtp
            0x0030:  3037 2e77 6562 2e64 6520 636c 6f73 696e  07.web.de.closin
            0x0040:  6720 636f 6e6e 6563 7469 6f6e 0d0a       g.connection..
    20:48:55.945273 IP 192.168.178.220.1035 > smtp-ha.web.de.25: F 48:48(0) ack 375 win 7504
            0x0000:  4500 0028 c519 4000 4006 684b c0a8 b2dc  E..(..@.@.hK....
            0x0010:  d948 c09d 040b 0019 2cb2 f356 fc63 2871  .H......,..V.c(q
            0x0020:  5011 1d50 3c16 0000                      P..P<...
    20:48:55.947828 IP smtp-ha.web.de.25 > 192.168.178.220.1035: F 375:375(0) ack 48 win 5840
            0x0000:  4500 0028 365b 4000 3706 000a d948 c09d  E..(6[@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 2871 2cb2 f356  .........c(q,..V
            0x0020:  5011 16d0 4296 0000 4b24 0000 0046       P...B...K$...F
    20:48:55.948285 IP 192.168.178.220.1035 > smtp-ha.web.de.25: . ack 376 win 7504
            0x0000:  4500 0028 c51a 4000 4006 684a c0a8 b2dc  E..(..@.@.hJ....
            0x0010:  d948 c09d 040b 0019 2cb2 f357 fc63 2872  .H......,..W.c(r
            0x0020:  5010 1d50 3c15 0000                      P..P<...
    20:48:55.975454 IP smtp-ha.web.de.25 > 192.168.178.220.1035: . ack 49 win 5840
            0x0000:  4500 0028 365c 4000 3706 0009 d948 c09d  E..(6\@.7....H..
            0x0010:  c0a8 b2dc 0019 040b fc63 2872 2cb2 f357  .........c(r,..W
            0x0020:  5010 16d0 4295 0000 b45d 0000 0046       P...B....]...F
    

    There is a message "no autorisation", but under <services> I have the line:

    <emailserver type="smtp" host="smtp.web.de:25" from="xxxxxxx@web.de" login="xxxxxxx@web.de" pass="yyyyyyyyy"/>
    

    It works, if I have logged in my web.de account.

    The question is, why does the authentification not work with the Email function.

    Chris

     
  • chris_14

    chris_14 - 2010-03-10

    Hi Jean-François,

    thanks for your reply. Web.de uses SMTP-Authentication OR "POP before SMTP". But on my installation the SMTP-Authentication of linknx don't function at web.de and strato.de either. I have the actual versions of linknx (0.0.1.27-2) and libsmtp (1.0.4-2). Can you give me a hint, where I can search for this problem?

    Chris

     
  • jef2000

    jef2000 - 2010-03-10

    Hi,

    What libEsmtp are you using. Did you compile it yourself (with what options)? Do you use a precompiled binary? Where does-it come from?
    I looked at your tcpdump and at the libEsmtp source code and it looks like if libEsmtp was compiled without the authentication support.

    Regards,

    Jean-François

     
  • chris_14

    chris_14 - 2010-03-11

    Hi,
    I am using the version from your site http://ouaye.net/linknx/OpenWRT-WhiteRussian-RC6.

    Its running on a WRT54GS with White Russian 0.9 and X-Wrt Webinterface. Its possible, that the email function didn't work at all with this combiation, I don't know. Maybe its a problem with this combiation.
    Best regards,
    Chris

     
  • jef2000

    jef2000 - 2010-03-14

    Hi,

    I think I've found the problem. The authentication plugins were not included in the ipk. I made a new one:
    http://ouaye.net/linknx/OpenWRT-WhiteRussian-RC6/libesmtp_1.0.4-3_mipsel.ipk
    After installing it, you should have a /usr/lib/esmtp-plugins/ directory on your router containing the sasl plugins.

    Regards,

    Jean-François

     
  • chris_14

    chris_14 - 2010-03-16

    Hi Jean-François,

    thank you for this package! With this package the email-function works correctly at strato.de, but not at web.de.
    Strato sends this:

    ...250-AUTH.PLAIN.LOGIN.CRAM-MD5...
    

    Web.de sends this:

    .250-AUTH.PLAIN.LOGIN...250-STARTTLS...
    

    Maybe Web.de uses an other authentication.

    I will switch back to strato.de as smtp host.

    As an interim solution I tried an other way to send my emails: SSMTP works good, too.

    Thanks again for fixing the libesmtp package.

    Best regards,
    Chris

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.