• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[pilight 7.0] smtp-user must contain e-mail address
I've updated to pilight 7.0 and tried to use the smtp settings. The SMTP server i wanted to use, needs a username that is no email address.
Is it possible to change this validation?
@Niek? Can you check?

I will remove the regex validation for smtp-user from settings.c
Since smtp-sender and smtp-user now are validated by the same piece of code, I need to split that up.

Although it is not a big thing, it is not possible for me do that right now, but I think I can do it this weekend.

I changed and tested the validation of smtp-user sucessfully, so it will now accept any string value.

Since settings.c is a vital component of pilight, I wonder if you want me to update and commit it myself or if you prefer a pull request.
If you just changed this setting it's fine.
At least in the current stable is another bug: pilight does not accept smtp-user and smtp-sender domains that include a minus sign.

...this also affects the definition of sendmail rules.
i have the same Problem. My Domain is fam-pfaffinger.de, so i cant use a Mail Feature. The other Problem ist, that the SMTP-User is not a Mail-Address, it is in the Format m12345, so i also can ust this.

Is this already solved in a nightly buld?

Thomas Pfaffinger
This was fixed in the development version. See this commit

Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight bugs Ascenion 1 204 03-23-2020, 06:29 PM
Last Post: curlymo
  [Solved] pilight service crashing on first webserver access after reboot VrahoK 20 1,678 12-21-2019, 09:46 AM
Last Post: curlymo
  pilight-control modify values coolinx 16 1,465 11-13-2019, 08:02 PM
Last Post: curlymo
  Bug: double free or corruption in pilight-send blackzombie 12 1,330 10-07-2019, 08:15 PM
Last Post: blackzombie
  [Fixed] High CPU usage when pilight usb nano disconnects DieterK 1 520 08-13-2019, 05:43 PM
Last Post: curlymo
  pilight Nano USB interface curlymo 228 117,314 07-10-2019, 06:14 PM
Last Post: curlymo
  problems compiling pilight on Odroid C2 WitchDoctor 101 17,098 03-14-2019, 09:01 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 4,422 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 986 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 889 06-20-2018, 12:44 AM
Last Post: DieterK

Forum Jump:

Browsing: 1 Guest(s)