New to DA & Email-admin: Help to set up mail!

retypejonas

New member
Joined
Jul 22, 2009
Messages
4
Hi everyone!

I'm new to Directadmin, coming from Mosso cloud hosting but i felt i needed something more scaleable (read. cheaper entry level price) so i just signed up for a VPS with DirectAdmin pre-installed.

Everything is working fine but mail.

I'v had some apache/php/mysql setups running in my local network as development platforms, so i'm not totally new to the http aspects of the server.

But i'v never done mail.

This is how far i'v got:

I set up a A-record named 'mail' pointing to the servers IP and a MX-record pointing to mail.domain.com in the webhosts dns admin, and left the dns options inside Direct Admin untouched, which means "use this server for mail" is checked and the only mx record ins 10 mail.

Then created a mail account called test for the particular domain.

At first, i the mail got rejected. So i found a post in here regarding that problem, linking to a suggested exim.conf which should fix the permission issue,

http://files.directadmin.com/services/exim4.conf

Now, emails dont get rejected. I haven't got any error messages/bounces since i sent a few testmails +12 hours ago. And as far as i can tell, stuff looks fine here (?)

http://network-tools.com/default.asp?prog=validate&[email protected]

HOWEVER, the mail doesnt show up in the inbox for the adress, and are not visible in the mail queue inside direct admin...

Any suggestions? Help much appreciated.
 
Last edited:
Send an email while watching /var/log/exim/mainlog and look what happens.
 
Send an email while watching /var/log/exim/mainlog and look what happens.

Thank you, it turns out like this. Can someone help me translate to plain english? :)

2009-07-22 15:22:00 1MTblg-0000Re-8p <= [email protected] H=fg-out-1718.google.com [72.14.220.152] P=esmtp S=1573 id=4f2fbfa$
2009-07-22 15:22:00 1MTblg-0000Re-8p => test <[email protected]> F=<[email protected]> R=virtual_user T=virtual_loca$
2009-07-22 15:22:00 1MTblg-0000Re-8p Completed
2009-07-22 15:28:59 1MTR9d-00026g-1B removed by root
2009-07-22 15:28:59 1MTR9d-00026g-1B Completed
2009-07-22 15:36:37 1MTbzp-0006O4-47 <= [email protected] H=fg-out-1718.google.com [72.14.220.152] P=esmtp S=1583 id=4f2fbfa$
2009-07-22 15:36:37 1MTbzp-0006O4-47 => test <[email protected]> F=<[email protected]> R=virtual_user T=virtual_loca$
2009-07-22 15:36:37 1MTbzp-0006O4-47 Completed

I guess "1MTR9d-00026g-1" is a message not related to this i deleted from the mailqueue.

Looks quite OK in my eyes.

Any other troubleshoot hints?
 
Last edited:
First: I'm the guy who wrote that exim.conf file. Note that's long in the tooth; I've just released a newer version yesterday as a release-candidate. however it's only available at my site.

Now: Is your server running Maildir/Dovecot or mbox? The easiest way to tell is to watch for the output of:
Code:
# ps waux | grep imap
What do you see? If you see Dovecot then your server is running Dovecot.

The file you linked to in your post is not designed for Dovecot. The easiest way to fix the problem may be use my newest release candidate (I've been using it for two days now and it appears very stable and blocks a lot of spam), but you have to configure it (you should also configure the file to which you've linked, but on an mbox-based system it will run without configuration.

Note my latest file will only run on a Maildir/Dovecot system; it won't run at all using mbox.

Or you can keep using the file you've got by converting your system to Maildir. You can do that even if it's already been done; it won't break anything, though you may see a few error messages while it runs.

The conversion instructions can be found by searching these forums.

I, and others who post on these forums, offer commercial DirectAdmin services, if you feel this isn't something you want to tackle yourself; you can contact me by sending an email to my address below, or search our advertising forums for others.

You can find the latest version of the SpamBlocker exim.conf file, the release-candidate, here. If you decide to use it, then please be sure to read all the README information and do the necessary configuration.

As far as Mosso is concerned, I never could understand why they say you need such an expensive instance to do webhosting. I've actually thought of reselling DirectAdmin on smaller Mosso instances. But I don't have the time for the extensive testing I'd need to do.

Welcome to DirectAdmin, and good luck.

Jeff
 
First: I'm the guy who wrote that exim.conf file. Note that's long in the tooth; I've just released a newer version yesterday as a release-candidate. however it's only available at my site.

Now: Is your server running Maildir/Dovecot or mbox? The easiest way to tell is to watch for the output of:
Code:
# ps waux | grep imap
What do you see? If you see Dovecot then your server is running Dovecot.

The file you linked to in your post is not designed for Dovecot. The easiest way to fix the problem may be use my newest release candidate (I've been using it for two days now and it appears very stable and blocks a lot of spam), but you have to configure it (you should also configure the file to which you've linked, but on an mbox-based system it will run without configuration.

Note my latest file will only run on a Maildir/Dovecot system; it won't run at all using mbox.

Or you can keep using the file you've got by converting your system to Maildir. You can do that even if it's already been done; it won't break anything, though you may see a few error messages while it runs.

The conversion instructions can be found by searching these forums.

I, and others who post on these forums, offer commercial DirectAdmin services, if you feel this isn't something you want to tackle yourself; you can contact me by sending an email to my address below, or search our advertising forums for others.

You can find the latest version of the SpamBlocker exim.conf file, the release-candidate, here. If you decide to use it, then please be sure to read all the README information and do the necessary configuration.

As far as Mosso is concerned, I never could understand why they say you need such an expensive instance to do webhosting. I've actually thought of reselling DirectAdmin on smaller Mosso instances. But I don't have the time for the extensive testing I'd need to do.

Welcome to DirectAdmin, and good luck.

Jeff

Thanks!

I followed these instructions to make a fresh install of the config,

And now the mail arrives in squirrel mail.

Now the missions seems to make things downloadable from pop/imap in a desktop client :/
 
Back
Top