Rimas ��� doh!�� Let me give that a shot and I will reply back later today.�� I appreciate your eyes!
Helmut
From: users [mailto:users-bounces@exim4u.org] On Behalf Of Rimas Kudelis
Sent: Wednesday, April 13, 2016 10:43 PM
To: users@exim4u.org
Subject: Re: [Exim4U] issues with setup
Hi,
2016-04-14 07:09, Helmut Fritz wrote:
OK guys, I generally have a server up and running on FreeBSD. I have a couple of issues though.
1. I created my first domain and users and all emails are being rejected: 2016-04-14 04:04:48 H=<domain.tld> [35.9.75.75] F=<> rejected RCPT <emailaddress@firstdomain.tld>: relay not permitted
1.a. I checked the mysql database, the domain and all users are created and all point to the proper mail reporistory.
<SNIP>
1.e. Any ideas?
I suggest you check this out: https://newspaint.wordpress.com/2014/08/22/testing-a-new-exim-configuration-file-before-deployment/ . Exim has built-in testing and debugging features, which might be of great help debugging issues like yours.
From your error messages, I would guess your exim doesn't treat virtual domains as local. Maybe you haven't configured it properly? Debugging should help you figure it out. For example, here's how to quickly see whether an email address is seen as local or not (note I did this under Debian, so the binary path might be a bit different):
rq@sonata:~$ /usr/sbin/exim4 -bt rimas@kudelis.lt # local address
rimas@kudelis.lt -> /var/mail/vexim/kudelis.lt/rimas/Maildir
transport = virtual_delivery
rq@sonata:~$ /usr/sbin/exim4 -bt rq@rq.lt # local alias
rimas@kudelis.lt -> /var/mail/vexim/kudelis.lt/rimas/Maildir
transport = virtual_delivery
rq@sonata:~$ /usr/sbin/exim4 -bt foo@example.org # non-local address
R: dnslookup for foo@example.org
foo@example.org
router = dnslookup, transport = remote_smtp
host example.org [2606:2800:220:1:248:1893:25c8:1946]
host example.org [93.184.216.34]
2. I installed dovecot 2 from packages: pkg install dovecot2 but I am not sure I can use it? It seems like it is not compiled with the mysql auth method! Am I correct? do I need to configure and compile it from ports?
./maillog:Apr 14 02:20:54 svr6 dovecot: auth: Fatal: Support not compiled in for passdb driver 'sql'
I guess this bit of Gordon's email slipped through your eyes:
AFAIK, there are only two packages that you will need to compile using the ports collection in order to get Exim4U working: exim and dovecot2. You should compile these two packages in order to customize the configurations to work with mysql, sqlite, etc. Otherwise, you should be able to install everything with the "pkg" command.
If you didn't compile anything yet, then perhaps your Exim also doesn't support SQL at the moment? That could probably explain your first issue, although I don't think you would be able to run it with a bad configuration file (using unsupported features).
Thx for any help. I have actually kept a ���log��� of the steps and progress and can hopefully publish a complete single steps-to-install-and confirgure doc for FreeBSD (once it will works of course!).
Great!
Regards,
Rimas