1

Topic: Mail Relay not working.

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  1.3.1 PGSQL edition.
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Ubuntu 20.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro?  No.
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
===

I'm trying to set this up to replace an OLD fetchmail/procmail/postfix setup.

So far I've managed to install, get SOGo working, install some accounts and impa sync from the old to the new.

But, I can't send any mail from SOGo. I have followed the documentation on setting up an smtp relay, but as far as I can see its not being used (relay local every time).

The message is flowing through the queue properly, but never gets to the user...

The log looks like.

Aug 30 15:21:26 mail3 postfix/postscreen[564105]: CONNECT from [127.0.0.1]:33332 to [127.0.0.1]:25
Aug 30 15:21:26 mail3 postfix/postscreen[564105]: WHITELISTED [127.0.0.1]:33332
Aug 30 15:21:26 mail3 postfix/smtpd[564106]: connect from mail3.infoteq.com.au[127.0.0.1]
Aug 30 15:21:26 mail3 postfix/smtpd[564106]: 4BfMBZ4ztNzRkRG: client=mail3.infoteq.com.au[127.0.0.1]
Aug 30 15:21:26 mail3 postfix/cleanup[564121]: 4BfMBZ4ztNzRkRG: message-id=<508-5f4b3780-13-4563db00@151483194>
Aug 30 15:21:26 mail3 postfix/qmgr[562788]: 4BfMBZ4ztNzRkRG: from=<pnunn@infoteq.com.au>, size=891, nrcpt=1 (queue active)
Aug 30 15:21:26 mail3 postfix/smtpd[564106]: disconnect from mail3.infoteq.com.au[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 30 15:21:27 mail3 postfix/10025/smtpd[564134]: connect from mail3.infoteq.com.au[127.0.0.1]
Aug 30 15:21:27 mail3 postfix/10025/smtpd[564134]: 4BfMBb1X1HzRkRT: client=mail3.infoteq.com.au[127.0.0.1]
Aug 30 15:21:27 mail3 postfix/cleanup[564121]: 4BfMBb1X1HzRkRT: message-id=<508-5f4b3780-13-4563db00@151483194>
Aug 30 15:21:27 mail3 postfix/qmgr[562788]: 4BfMBb1X1HzRkRT: from=<pnunn@infoteq.com.au>, size=2123, nrcpt=1 (queue active)
Aug 30 15:21:27 mail3 postfix/10025/smtpd[564134]: disconnect from mail3.infoteq.com.au[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Aug 30 15:21:27 mail3 amavis[94776]: (94776-03) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [127.0.0.1]:33332 ESMTP/ESMTP <pnunn@infoteq.com.au> -> <pnunn@intq.it>, (), Queue-ID: 4BfMBZ4ztNzRkRG, Message-ID: <508-5f4b3780-13-4563db00@151483194>, mail_id: pFrWviWq0AIC, b: pshB4lynC, Hits: -0.999, size: 891, queued_as: 4BfMBb1X1HzRkRT, Subject: "Sigh", From: <pnunn@infoteq.com.au>, User-Agent: SOGoMail_4.3.2, helo=mail3.infoteq.com.au, Tests: [ALL_TRUSTED=-1,HTML_MESSAGE=0.001], autolearn=ham autolearn_force=no, autolearnscore=0.001, dkim_new=dkim:infoteq.com.au, 488 ms
Aug 30 15:21:27 mail3 postfix/amavis/smtp[564126]: 4BfMBZ4ztNzRkRG: to=<pnunn@intq.it>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.57, delays=0.08/0.01/0/0.49, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4BfMBb1X1HzRkRT)
Aug 30 15:21:27 mail3 postfix/qmgr[562788]: 4BfMBZ4ztNzRkRG: removed
Aug 30 15:21:27 mail3 postfix/local[564135]: 4BfMBb1X1HzRkRT: to=<pnunn@intq.it>, relay=local, delay=0.02, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to mailbox)
Aug 30 15:21:27 mail3 postfix/qmgr[562788]: 4BfMBb1X1HzRkRT: removed

I'm trying to relay through mail.aussiebroadband.com.au, but I'm not seeing any mention of that relay anywhere.

/etc/postfix/main.cf has the following

mydestination = $myhostname, localhost.infoteq.com.au, localhost, intq.com.au, intq.it, gpsit.com.au, goldenplainsit.com.au, marketdispatch.com.au
relayhost = [mail.internode.on.net]:25
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
smtp_sasl_auth_enable = yes
smtp_sasl_mechanism_filter = login
smtp_sasl_security_options = noanonymous

and sasl_password

[mail.internode.on.net]:25 yyyyy@aussiebroadband.com.au:xxxxxxxx

I then use

sudo postmap /etc/postfix/sasl_password

and restarted postfix (one of the instructions had sudo postmap hash:/etc/postfix/sasl_password but it didn't seem to change anything).

What am I doing wrong?

Ta

Peter.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Mail Relay not working.

Answered part of my own question. Realised that the domain I'm trying to send too is in the mydestination list so infact it is doing exactly what it should.. sigh, just not aliased so can't send it.

I tried another address and now get authentication failure from the relay so it seems it is trying to work.

3

Re: Mail Relay not working.

All good.. worked out that I was trying to go to the wrong server... sigh... Now, to sort out the aliases.