This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Email into SPAM
#1
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
Reply
#2
Usually you can mark email as not spam and from then it is excluded from spam filter.
------------------------------
Ctrl+F5
Reply
#3
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.
Reply
#4
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
Reply
#5
Add domain = 'yourdomain.tld', to mail settings table.
Reply
#6
Thanks admin it works perfectly!
Reply


Forum Jump: