Postfix Error 554 5.7.1 <recipient@theirdomain.com>: Relay access denied

Hi, I can’t seem to get any email to send out using Postfix. I am using Virtualmin on a CentOS 5.5 32 bit OS. I am trying to mail to a VPS using a desktop app. I haven’t done any modifications to Virtualmin or Postfix, except that I could not connect using port 25, so I added port 2525 in the master.cf file. I don’t know how to access the Postfix logs, but here is the deliver log from my client:

Starting Sending
Sending 1 emails over 1 Threads
Sending to:recipient@theirdomain.com Failed.
ChilkatLog:
SendEmail:
DllDate: Dec 22 2010
UnlockPrefix: ROBERTMAILQ
Username: my pc
Component: .NET 2.0
recipients:
TO: recipient@theirdomain.com
totalCount: 1
renderToMime:
createEmailForSending:
xSigningAlg: sha1
renderToMime: Elapsed time: 0 millisec
SmtpConnect:
SmtpHost: myhost.info
SmtpPort: 2525
SmtpUsername:
SmtpSsl: 0
StartTLS: 0
Need new SMTP connection
No SMTP login provided.
No SMTP password provided.
Skipping SMTP authentication because no login/password provided.
SMTP_Connect:
Connecting to SMTP server myhost.info:2525
smtp_host: myhost.info
smtp_port: 2525
smtp_user: NULL
auth-method: NONE
ConnectTimeoutMs: 30000
calling ConnectSocket2
Connect using IPV4.
ipAddress: xxx.x.xx.xxx
socketHandle: 0x3ec
ai_addrlen: 16
ai_addr: 0200 09DD AD00 33AB 0000 0000 0000 0000

    myIP_3: 10.0.0.2
    myPort_3: 2277
    connect successful.
    InitialResponse: 220 apexemail.info ESMTP Postfix

    sendingHello: EHLO mypc

    helloResponse: 250-myhost.info

250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN

    smtpAuthMethod: NONE
    login_method: NONE or already authenticated
    CONNECTED to ESMTP server myhost.info:2525
    ConnectionType: Unencrypted TCP/IP
  checkOrMakeSmtpConnection: Elapsed time: 359 millisec
SmtpConn_sendMime_FROM: server1@server1.myhost.info
recipients:
  554 5.7.1 <recipient@theirdomain.com>: Relay access denied
  Failed when sending RCPT TO:<recipient@theirdomain.com>
  bad_address: recipient@theirdomain.com
No valid recipients
smtpConversation: Elapsed time: 188 millisec
Failed.

Failed Email accounts
1 email(s) failed from

Spent hours on this… any help would be appreciated, thanks!

Howdy,

You can view the mail logs on your server by looking in /var/log/maillog.

However, one error that sticks out in your output above is the “Relay access denied” message. That error can occur if your email client isn’t setup to authenticate outgoing emails, which is a default for many clients.

I’d recommend verifying in your email client that outgoing email is authenticated with the server.

-Eric