Logic Machine Forum
Email into SPAM - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Email into SPAM (/showthread.php?tid=3028)



Email into SPAM - Mirco - 26.11.2020

Hi I have a problem with sending email from LM5:

I use this setting:
Code:
local settings = {
    -- "from" field, only e-mail must be specified here
    from =  email,
    -- smtp username
    --user = '',
    -- smtp password
    --password = '',
    -- smtp server
    server = '192.168.206.70',
    -- smtp server port
    port = 25,
    -- enable ssl, required for gmail smtp
    --secure = 'sslv23',
  }

The email is marked SPAM and the server output is:

(I deleted the "from" and the "to" email and replaced with "***")

from=<***> to=<***>
proto=ESMTP helo=<localhost>
Nov 26 14:37:33 smtpservice1 postfix/cleanup[23052]: AAD0E255: message-id=<>
Nov 26 14:37:33 smtpservice1 opendkim[22852]: AAD0E255: can't determine
message sender; accepting


Can someone help me?

Thanks


RE: Email into SPAM - Daniel - 26.11.2020

Usually you can mark email as not spam and from then it is excluded from spam filter.


RE: Email into SPAM - admin - 26.11.2020

I think this has something to do with the mail server configuration not with the script. Some mail providers might provide additional information on why a certain email has been marked as spam.


RE: Email into SPAM - Mirco - 30.11.2020

The admin of the email server, told me that the problem is that the LM introduces himself as localhost, this is the problem:

from=<***> to=<***>
proto=ESMTP helo=<localhost>
Nov 26 14:37:33 smtpservice1 postfix/cleanup[23052]: AAD0E255: message-id=<>
Nov 26 14:37:33 smtpservice1 opendkim[22852]: AAD0E255: can't determine
message sender; accepting


Is there a way to change the "helo" paramiter that the LM write?

Thanks


RE: Email into SPAM - admin - 30.11.2020

Add domain = 'yourdomain.tld', to mail settings table.


RE: Email into SPAM - Mirco - 01.12.2020

Thanks admin it works perfectly!