Hi.
There used to (COS5.2) a menu driven way to forward one user's email to an external email account. In COS 7 I can't find this.
I've been reading how to do this with postfix main.cfg but I'm worried that it will break something with my virtual domain etc. I found a post that was speaking directly to Zafara but I don't have that installed. My home COS is just stock build with IMAP,, POP and SMTP for two domains.
Since I can't do this (as far as I can tell) from the webconfig, then what is the best way to do this?
Thanks.
There used to (COS5.2) a menu driven way to forward one user's email to an external email account. In COS 7 I can't find this.
I've been reading how to do this with postfix main.cfg but I'm worried that it will break something with my virtual domain etc. I found a post that was speaking directly to Zafara but I don't have that installed. My home COS is just stock build with IMAP,, POP and SMTP for two domains.
Since I can't do this (as far as I can tell) from the webconfig, then what is the best way to do this?
Thanks.
In Mail
Share this post:
Responses (9)
-
Accepted Answer
-
Accepted Answer
Here is what I've done so far. Please let me know if you see any problems with this.
I edited the /etc/aliases file and added at the very bottom
username: email_address@gmail.com
Then did
# newaliases
# systemctl restart postfix
As a test, I sent the root emails to my username and forwarded my userid to gmail. It looks like it is forwarding OK. -
Accepted Answer
-
Accepted Answer
Ben Chambers wrote:
Pete did a bit of experimental work on this for a university that needed this feature.
To enable the forwarding feature, touch a file:
touch /var/clearos/mail_routing/forwarders
At this point, you should be able to see a new "Forwarders" section when adding/editing a user.
B
Thanks Ben.
Since I've already manually changed the aliases file, should I undo those changes or will enabling the forwarders file take the existing changes to the aliases file? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
nuke wrote:
Ben Chambers wrote:
Ya...if you've already done custom changes, I'd undo them and try the "ClearOS" way. If things don't work out, you can always 'redo' them.
B
Thanks Ben,
That worked really nicely and via the webconfig too!
Ben,
It appears that google is now blocking the emails that are forwarded and everything else sent to Gmail.
I've seen this in the log this morning.
Our system has detected that this message is 550-5.7.1 likely unsolicited mail. To reduce the amount of spam sent to Gmail, 550-5.7.1 this message has been blocked. Please visit 550-5.7.1 https://support.google.com/mail/?p=UnsolicitedMessageError 550 5.7.1 for more information.
Now no mail arrives at Google but it is sent when I look at the logs.
I have antispam and antivirus running and added spamhaus and barracudacentral.org to my postfix main.cf so the spams getting through are not many.
Any suggestions on what to check or do?
Thanks. -
Accepted Answer
I had all sorts of problems with email since I did the forwarding. I'm not quite sure what the problem was but suspect that this forwarding was the problem or a part of it.
Ben I tried your suggestions and I liked the fact that I could add forwards from the GUI.
However it looked like all outbound mail was not leaving. I followed up with a number of people who I sent emails to but they never received anything. So for about 3 days we didn't send any emails. The logs show the email going to mailfilter and then being deleted.
As I said, there may have been other factors in play because I fixed a certificate issue and imapd failure at the same time as removing the /var/clearos/mail_routing/forwarders file. Upon deleting the forwarders file, doing the aliases command and then reloading postfix, it looks like it's working properly again.
I think this forwarders file solution needs some more testing. -
Accepted Answer
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »