Page 1 of 1

Email forwarding not working

Posted: Fri Oct 19, 2018 10:19 am
by sarzali
Hi

I have centos OS, Vesta 23 updated. All working good, but forwarding email not working to any domain.

Can you please let me know what setting I modify to work forwarding emails

Regards

Re: Email forwarding not working

Posted: Mon Nov 26, 2018 4:23 pm
by wchild
If you have everything set up properly, maybe it is going to the spam folder? Put in a gmail address for forwarding and see if the message reaches the spam folder. Hosting your own email server will get it automatically marked as spam on big branded email hosts.

Re: Email forwarding not working

Posted: Tue Dec 04, 2018 11:35 pm
by DubMatrix
What I noticed is that email forwarding seems to work, but it doesn't work if email is sent from either the mail address you want to send to or the email address you want to forward to. So for example I have set up email address [email protected] and forward it to [email protected]. When I send an email from [email protected] or [email protected] to [email protected] then it doesn't forward (never arrives), but when I send an email from another address to [email protected] the it arrives.

Does this make sense? Is there a reason as to why it's not working when using one of the addresses itself?

Re: Email forwarding not working

Posted: Tue Dec 04, 2018 11:48 pm
by DubMatrix
I was also checking the /var/logs/maillog file and it could be related to spamassassin (please note I've replaced the servername with ???? and message id with .....):

Dec 5 00:42:45 server spamd[25527]: spamd: connection from localhost.localdomain [127.0.0.1]:37726 to port 783, fd 5
Dec 5 00:42:45 server spamd[25527]: spamd: handle_user (getpwnam) unable to find user: 'spamd'
Dec 5 00:42:45 server spamd[25527]: spamd: still running as root: user not specified with -u, not found, or set to root, falling back to nobody
Dec 5 00:42:45 server spamd[25527]: spamd: checking message <[email protected]> for spamd:99
Dec 5 00:42:45 server spamd[25527]: plugin: eval failed: bayes: (in learn) locker: safe_lock: cannot create tmp lockfile /.spamassassin/bayes.lock.server.?????????.com.25527 for /.spamassassin/bayes.lock: No such file or directory
Dec 5 00:42:45 server spamd[25527]: spamd: clean message (-0.1/5.0) for spamd:99 in 0.3 seconds, 2759 bytes.
Dec 5 00:42:45 server spamd[25527]: spamd: result: . 0 - DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_PASS scantime=0.3,size=2759,user=spamd,uid=99,required_score=5.0,rhost=localhost.localdomain,raddr=127.0.0.1,rport=37726,mid=<[email protected]>,autolearn=unavailable autolearn_force=no
Dec 5 00:42:45 server spamd[25526]: prefork: child states: II

Re: Email forwarding not working

Posted: Tue Dec 11, 2018 5:31 pm
by David_curtis
Maybe you can send email through an SMTP server. Meian had a similar problem with sending messages, it turned out to fix the problem when I started sending messages through the BSG server.

Re: Email forwarding not working

Posted: Wed Dec 12, 2018 1:27 pm
by David_curtis
It turned out to find a solution?

Re: Email forwarding not working

Posted: Wed Dec 12, 2018 1:27 pm
by David_curtis
Maybe you can send email through an SMTP server. Meian had a similar problem with sending messages, it turned out to fix the problem when I started sending messages through the BSG server.