Question about: "Use SMTP to send system mails"

Discussion in 'General' started by Ovidiu, Feb 4, 2019.

  1. Ovidiu

    Ovidiu Active Member

    I am using that option to send out system email through Gmail's SMTP server BUT I still get emails that are not sent out through that server but through my own so I was wondering what is considered a "system mail" by ISPCFG3?

    i.e. the latest example of an email which did NOT go out through this external server had this subject: "The mailbox [email protected] is near or over quota." - is this not a system email?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a system mail and should be sent out. Where di the message and up and what exactly did you get logged in the mail.log for that message?
     
  3. Ovidiu

    Ovidiu Active Member

    The reason why I noticed something was wrong is because I use SPF and DKIM for this domain (where my Emails are hosted via Google Apps) so in my Gmail inbox I see this undelivered email. I left my email address visible, just blanked the client's address. Btw. this was the over-quota mail to myself, the same happens with the email sent to the client himself.

    upload_2019-2-4_11-10-0.png



    These are my settings in the ISPCFG3 dashboard:

    upload_2019-2-4_11-2-8.png

    The logs:

    Feb 4 01:00:49 alfred postfix/smtp[25826]: E1007120318: to=<client address>, relay=gmail-smtp-in.l.google.com[108.177.15.26]:25, delay=0.5, delays=0/0.01/0.15/0.33, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[108.177.15.26] said: 550-5.7.1 Unauthenticated email from pacura.ru is not accepted due to domain's 550-5.7.1 DMARC policy. Please contact the administrator of pacura.ru domain if 550-5.7.1 this was a legitimate mail. Please visit 550-5.7.1 https://support.google.com/mail/answer/2451690 to learn about the 550 5.7.1 DMARC initiative. t63si6412399wma.109 - gsmtp (in reply to end of DATA command))

    This is weird, it says unauthenticated... I created an app password specifically for ISPCFG to send through Gmail. I'll update the password and see if the error persists tomorrow.
     
  4. Ovidiu

    Ovidiu Active Member

    I got the same email today, still saying unauthenticated email is not accepted. Any more tips or things to check? I don't understand why it says unauthenticated. I provided a user name and an app password.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    Hmm, strange. And the ISPConfig version is the current one?
     
  6. Ovidiu

    Ovidiu Active Member

    Nope, sorry, not the latest one, slightly behind: 3.1.11
     
  7. ahrasis

    ahrasis Well-Known Member

    Try port 587.
     
  8. Ovidiu

    Ovidiu Active Member

    Thanks. Will give it a try and report back tomorrow. Here are the current settings:

    upload_2019-2-5_13-39-41.png
     
  9. ahrasis

    ahrasis Well-Known Member

    Sorry, I missed one more thing but in SMTP host used this instead:
    [smtp-relay.gmail.com]

    In my server, this should work almost immediately.
     
  10. Ovidiu

    Ovidiu Active Member

    Unfortunately I cannot use that one as I am on the legacy free edition of G Suite.

    upload_2019-2-5_15-5-40.png
     
  11. ahrasis

    ahrasis Well-Known Member

    Sorry to hear that.
     
  12. Ovidiu

    Ovidiu Active Member

    nothing changed, I just got the same email error about unauthenticated emails as can be seen in my initial post.

    Any more ideas?
     
  13. Ovidiu

    Ovidiu Active Member

    can anyone duplicate this issue?
    was this maybe closed in a newer ISPCFG version? As I said earlier, I'm on 3.1.11
     
  14. ahrasis

    ahrasis Well-Known Member

    Based on my own experience there is a different between using relay and smtp. Using the later, via your old gsuite free account, you can only securely use [email protected] and not [email protected]. The proper party or forum to ask and confirm about this is Google itself.
     
  15. Ovidiu

    Ovidiu Active Member

    I think you introduced the idea of relaying into this discussion. All I am trying to do is using the Gmail SMTP Server for system emails. The system admin's email is set to my Gmail address. The point is, somehow the error is talking about unauthenticated emails when I have setup my Gmail credentials to be used so how can that be?
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

    But the sending address or domain is not an email address or email domain that you use at Gmail?
     
  17. ahrasis

    ahrasis Well-Known Member

    I was referring your above logs where it says you are using smtp as a relay, so I mentioned it a bit, but my point is still about smtp and the right sending email address and domain as also stated by @till above.

    About the logs it also mentioned about dmarc, did you read the given link and try its given solutions, if any?
     

Share This Page