Mail server

Gid xx is not permitted to relay mail

If you are getting the error shown below when trying to send mail using “cgiemail” or php script you need to try following solution.

1 First check if /usr/sbin/sendmail is there and make sure that it is not a link to /usr/sbin/exim

2 Check the permissions. The permission should be as follows.

Owner should be root and group should be mailtrap.

Make sure the group has sgid permission.

Try removing the file “/etc/eximmailtrap”, if the above doesn’t fix the issue.

If still the problem persists make a comment entry to this blog i will try to help you to resolve your probs.