Problems setting up email on a server
Discussion
hey guys, I have a self managed server and am having trouble setting it up so that I can receive emails to name@mydomain.com
Ive set up roundcube as a mail client, and can log into that (I had to set up a linux user and password before I could do this) and I can send email from my email client (roundcube, but I suspect that it uses php's mail() function)
When I send an email to the address name@mydomain.com it's being bounced back with the message:
If I ssh onto my server and type in : mail myemail@goodemail.com etc I see a message in my mail on the server stating:
[NOWIKI]
Anyone have any ideas on what's going on?
Ive set up roundcube as a mail client, and can log into that (I had to set up a linux user and password before I could do this) and I can send email from my email client (roundcube, but I suspect that it uses php's mail() function)
When I send an email to the address name@mydomain.com it's being bounced back with the message:
<snip>
If I ssh onto my server and type in : mail myemail@goodemail.com etc I see a message in my mail on the server stating:
[NOWIKI]
Anyone have any ideas on what's going on?
Edited by WTD on Saturday 1st December 06:41
Edited by WTD on Monday 3rd December 09:06
spants said:
its a config problem with the mail server - its not seeing the destination user as a local user hence the relaying message. Had this on a windows server a while back. Need to add the domain/users to a config file somewhere!
regards
Tony
Aye, alas I'm unfamiliar with this mailserver (more of an exim man myself) but it's effectively saying that it's refusing to relay to the domain, so it doesn't think it's a local domain, you'll need to specify what domains your mailserver thinks are local somewhere.. and in doing so, this may also get past the user unknown error (you'll either need to create a user alias for that email address, or a local user account with the same name)regards
Tony
On Exim this is controlled via a single -aliases file per domain, but as I say, I don't know your mailserver ;(
J
WTD said:
JamieBeeston said:
On Exim this is controlled via a single -aliases file per domain, but as I say, I don't know your mailserver ;(
J
feel free to jump on mate, u should still have the deets J

www.exim.org, but thats just one of many different MTA's
From the sounds of it yours is almost there, so may just need a few lines adding to a config somewhere!
Best bet will be try the support pages / lists for it, or get an expert on it to take a quick squiz.
J
I used to use qmail on my mail server way back when I was using Linux on a homebrew dual Celeron box (and when that died, a dual G4 Powermac). Took a lot of configuring but once working, the uptime was incredible. It was a while ago so I can't remember off the top of my head, I think I used this guide - the original guide is called 'Life with Qmail' and is linked on that page, it was what I used when I built it on Linux, but as I said I decided to move over to my Mac kit when the original dual-Celery hackbox SCSI disks failed.
It looks like there's a new 'relay control' component available which makes configuring it a lot easier.
Try here
May be worth installing QMailAdmin (gives a web interface to the mailserver) once it's running to avoid having to mess about with the command line - though you'll have to ensure only your external IP can connect to the QMailAdmin webserver port to avoid 'others' messing with your setup - I presume you're co-lo on this server and it's not within your local network.
Qmail was damned secure though - once I'd shut it out as a relay it was reliable, never fell over, and never got exploited. IIRC I ran it for around 5 years - firstly on a Linux box and then on Mac OS X Panther client (yes, really, it compiles, runs and doesn't break). Only swapped over when I decided to pay teh Steve for OS X Server and do it properly.
Alternatively you could use OS X Server which does IMAP and SMTP with all flavours of security and is so easy to set up a 4 year old could do it
(guess what I'm using now - much easier to control than qmail and vpopmail)
It looks like there's a new 'relay control' component available which makes configuring it a lot easier.
Try here
May be worth installing QMailAdmin (gives a web interface to the mailserver) once it's running to avoid having to mess about with the command line - though you'll have to ensure only your external IP can connect to the QMailAdmin webserver port to avoid 'others' messing with your setup - I presume you're co-lo on this server and it's not within your local network.
Qmail was damned secure though - once I'd shut it out as a relay it was reliable, never fell over, and never got exploited. IIRC I ran it for around 5 years - firstly on a Linux box and then on Mac OS X Panther client (yes, really, it compiles, runs and doesn't break). Only swapped over when I decided to pay teh Steve for OS X Server and do it properly.
Alternatively you could use OS X Server which does IMAP and SMTP with all flavours of security and is so easy to set up a 4 year old could do it
(guess what I'm using now - much easier to control than qmail and vpopmail)oh good god this is going to drive me crazy!!!!!!
I dont know what MTA my servers running, I know it has installed sendmail, exim, qmail and dovecot.
Looking at my services it appears it is sendmail thats running.
I've gone through a userguide but really don't understand it
Can anyone help me set it up, all I need is 3 mailboxes setting up to receive incoming messages to name1@mydomain.com,name2@mydomain.com,name3@mydomain.com
Can't be that difficult can it??
I dont know what MTA my servers running, I know it has installed sendmail, exim, qmail and dovecot.
Looking at my services it appears it is sendmail thats running.
I've gone through a userguide but really don't understand it

Can anyone help me set it up, all I need is 3 mailboxes setting up to receive incoming messages to name1@mydomain.com,name2@mydomain.com,name3@mydomain.com
Can't be that difficult can it??
Thank the spamming bastards for the hoops you have to jump through for mail these days. If I ever catch one of them, I'll stick his head on a stick & post the video to YouTube.
Meanwhile, look in /etc/mail/ for sendmail domain stuff. There is a file there called "relay-domains" - add yourdomain.com (whatever it might be) in there, and restart sendmail (/etc/rc.d/init.d/sendmail restart) and see if it works.
If you're using sendmail, a good test is to type
sendmail -bv test@yourdomain.com
it will give you useful errors if nothing else.
If you want to know what mailserver you're running, the easiest option is
netstat -tanp | grep :25
which should give you an idea.
Hope this helps.
Ciao
Zak
Meanwhile, look in /etc/mail/ for sendmail domain stuff. There is a file there called "relay-domains" - add yourdomain.com (whatever it might be) in there, and restart sendmail (/etc/rc.d/init.d/sendmail restart) and see if it works.
If you're using sendmail, a good test is to type
sendmail -bv test@yourdomain.com
it will give you useful errors if nothing else.
If you want to know what mailserver you're running, the easiest option is
netstat -tanp | grep :25
which should give you an idea.
Hope this helps.
Ciao
Zak
his companies at www.register1.net and www.serverstream.net are by far the most reliable and brilliant webhosting solution that I have ever used, and his support team are lightening fast and very friendly!
Recommend them 10/10
Recommend them 10/10

WTD said:
so this says it's postfix?
220 Server31.Register1.net ESMTP Postfix
Technically, I'd prefer my method over Jamie's. My money's still on exim. They may be related or something, but the welcome message can be set to anything really (as can the command line, to be fair) and is more likely to mislead than actually looking at the output of netstat. All in my humble opinion of course. 220 Server31.Register1.net ESMTP Postfix
zaktoo said:
WTD said:
so this says it's postfix?
220 Server31.Register1.net ESMTP Postfix
Technically, I'd prefer my method over Jamie's. My money's still on exim. They may be related or something, but the welcome message can be set to anything really (as can the command line, to be fair) and is more likely to mislead than actually looking at the output of netstat. All in my humble opinion of course. 220 Server31.Register1.net ESMTP Postfix
but to do that would require the box admin to have munged the welcome banner... as we know this hasnt taken place here... we know that the banner is reporting correctly 
Your method also doesnt work on BSD

either way
it's all gravy 
J
WTD said:
his companies at www.register1.net and www.serverstream.net are by far the most reliable and brilliant webhosting solution that I have ever used, and his support team are lightening fast and very friendly!
Recommend them 10/10
Recommend them 10/10

Given the OS you're chosen, it's going to be Sendmail as default, but iirc you were looking at some third-party MTA..I can flog you an Ensim install
will remove all of the MTA headaches, lovely control panel for adding / managing sites.. but you'll lose your flexibility to customise your mailserver!swings and roundabouts :|
J
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff



