1 (edited by jung 2021-01-31 17:02:27)

Topic: email forwarding is not working

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

Hi Guys,

Email forwarding is not working after following this guide "https://docs.iredmail.org/sql.user.mail.forwarding.html"
even after restarting, mysql, postfix, nginx, etc...

Sorry for posting this, but I've searched for possible fix but can't find one.

Please help. Thanks.
JunG


Hi Zhang,

Any help regarding this matter... Take note i am using iredmail 1.3.1 standard edition.

Thanks.
JunG

----

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

2

Re: email forwarding is not working

It's not clear what you actually did to create the forwarding, hard to help troubleshoot.
I suggest you double check the SQL command(s) you executed to add mail forwarding.

3

Re: email forwarding is not working

ZhangHuangbin wrote:

It's not clear what you actually did to create the forwarding, hard to help troubleshoot.
I suggest you double check the SQL command(s) you executed to add mail forwarding.

Hi Zhang,

This is what i've done:

a. connect to database "vmail"
b. run the command: 
INSERT INTO forwardings (address,
                         forwarding,
                         domain,
                         dest_domain,
                         is_forwarding,
                         active)
                 VALUES ('my_email@domain.com',
                         'forwardemail@domain2.com',
                         'domain.com',
                         'domain2.com',
                         1,
                         1);
c. run "select * from forwardings;
(i can see the record with is_forwarding value=1 and acvite value =1. and the intended record are correct.
d. restart mysql, postfix,php, etc....
e. sent email to my_email@domain.com

But message is not forwarded to 'forwardemail@domain2."

Thanks Zhang,
JunG

4

Re: email forwarding is not working

What's the related Postfix log?

5

Re: email forwarding is not working

I have the same problem, forwardings not working.

6

Re: email forwarding is not working

ZhangHuangbin wrote:

What's the related Postfix log?

Hi Zhang,

Email forwarding is working good with the scenario below:

First scenario:
When sending email using a different email address then, the email forwarding is working good meaning it's reaching the intended recipient and forwarded the email to assigned email address.

Second scenario:
When sending email using the assigned forwarding email then, the message will reach the intended recipient but not sending mail back to assigned forwarding email with error  "Feb  2 08:41:44 bit postfix/smtp[56001]: connect to aspmx.l.google.com[2a00:1450:400c:c0c::1a]:25: Network is unreachable"

Anyway the first scenario is working well so, i happy with it....

Thanks Zhang.
JunG

7

Re: email forwarding is not working

jung wrote:

connect to aspmx.l.google.com[2a00:1450:400c:c0c::1a]:25: Network is unreachable"

Does your server have a public IPv6 address? If not, Postfix should fall back to IPv4 and safe to ignore this error.