Gmail : 554 5.7.1 e-mail Relay access denied

Discussion in 'Installation/Configuration' started by AndyJor, Aug 24, 2021.

  1. AndyJor

    AndyJor New Member

    Ubuntu 18.04 VPS
    ISPConfig 3.1dev
    This server has worked well since setup a few years ago, however we only used one of the websites for mails . . .
    Recently it became necessary to setup the other websites to send and receive mails.
    This as been done and a second website can send and receive mails but it seems to be limited to websites within the VPS,
    Specifically any gmail incoming mail is rejected , gmail reports "Your message couldn't be delivered to e-mail because the remote server is mis-configured ". and lower down "
    The response from the remote server was:
    554 5.7.1 the email : Relay access denied
    my main.cf
    From my reading my error seems to be around the "mydestination" but I cannot get it correct
    I also note that the myorigin in etc/mailname is the same as the myhostname ie . .jor60-nix01.hostserv.xx.xx
    any help would be most appreciated
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    No, you don't use mydestination, it uses virtual_mailbox_domains. You added the domains under Email > Domains and it is active? What messages show up in your mail log when you try sending from Gmail?

    Note that 3.1 has had many security fixes, you should not use it. Simply updating to the current version and reconfiguring services may fix your issue.
     
    Last edited: Aug 24, 2021
  3. AndyJor

    AndyJor New Member

    Jesse,Thank You for the really fast response , I posted the complete tail,
    I am hoping I do not have to upgrade just yet as the installation has served faultlessly since 18.04 came out and I wanted to upgrade with the 2022 edition of Ubuntu
    All Domains are active (5 off) Plus an unpublished "newco.co.za" were I am busy upgrading the Zencart"

    ug 24 16:02:16 jor60-nix01 postfix/smtpd[58980]: warning: unknown[37.0.10.38]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Aug 24 16:02:16 jor60-nix01 postfix/smtpd[58980]: disconnect from unknown[37.0.10.38] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Aug 24 16:05:02 jor60-nix01 postfix/smtpd[59256]: connect from localhost[::1]
    Aug 24 16:05:02 jor60-nix01 postfix/smtpd[59256]: lost connection after CONNECT from localhost[::1]
    Aug 24 16:05:02 jor60-nix01 postfix/smtpd[59256]: disconnect from localhost[::1] commands=0/0
    Aug 24 16:05:08 jor60-nix01 postfix/smtpd[59256]: connect from unknown[37.0.10.38]
    Aug 24 16:05:11 jor60-nix01 postfix/smtpd[59256]: warning: unknown[37.0.10.38]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Aug 24 16:05:11 jor60-nix01 postfix/smtpd[59256]: disconnect from unknown[37.0.10.38] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Aug 24 16:05:19 jor60-nix01 postfix/smtpd[59256]: connect from unknown[37.0.10.38]
    Aug 24 16:05:26 jor60-nix01 postfix/smtpd[59256]: warning: unknown[37.0.10.38]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Aug 24 16:05:26 jor60-nix01 postfix/smtpd[59256]: disconnect from unknown[37.0.10.38] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Aug 24 16:05:30 jor60-nix01 postfix/smtpd[59256]: connect from unknown[45.9.20.16]
    Aug 24 16:05:33 jor60-nix01 postfix/smtpd[59256]: warning: unknown[45.9.20.16]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Aug 24 16:05:33 jor60-nix01 postfix/smtpd[59256]: disconnect from unknown[45.9.20.16] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

    Sorry an Edit
    Code:
    [email protected]:~# postmap -q macspares.co.za mysql:/etc/postfix/mysql-virtual_domains.cf
    macspares.co.za
    [email protected]:~# postmap -q solarfarm.org.za mysql:/etc/postfix/mysql-virtual_domains.cf
    solarfarm.org.za
    [email protected]:~# postmap -q mac100.co.za mysql:/etc/postfix/mysql-virtual_domains.cf
    mac100.co.za
    
     
    Last edited: Aug 24, 2021
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    That is a long time to go without updating any software, let alone software with known, published, critical vulnerabilities.

    Your log entries show someone in the Netherlands and someone in Russia failing to login to send mail - what log entries show up when you attempt to send from gmail and your server returns the 'Relay access denied' error? (it will include the 'Relay access denied' error from your server, as well as messages leading up to and following it.)
     
  5. AndyJor

    AndyJor New Member

    Ok Sorry about that , I should have check the IP'so_O

    Checking the whole log today I have only two , none of them a gmail,
    Code:
    04:43:00 jor60-nix01 postfix/smtpd[15433]: NOQUEUE: reject: RCPT from unknown[134.209.107.75]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=SMTP helo=<jor60-nix01.hostserv.co.za>
    same guy both times . . . .

    That has been my problem , I have not been getting a log , either in mail.logs or mail.err logs
    I have been battling with the hosting provider to sort out the MX and SPF records and it was only when I got a good rating from mail-tester.com did I really suspect I had a VPS server/Postfix problem,

    Now I'm wondering again if its not the host ( 1-grid.com ) as their records seem to override my VPS records, - it takes a lot of effort to get them to sort their side out
     
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    So sounds like your server isn't getting the mail at all. Keep working to get your MX (and A/AAAA( records right.
     
  7. AndyJor

    AndyJor New Member

    Good morning Jesse
    Never a truer word .... It was stopped on the service providers "Spam Titan Firewall "
    Thank you Your advice resolved this issue
     
    ahrasis likes this.

Share This Page