Problems setting up email on a server
Problems setting up email on a server
Author
Discussion

WTD

Original Poster:

818 posts

265 months

Saturday 1st December 2007
quotequote all
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:
<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

WTD

Original Poster:

818 posts

265 months

Saturday 1st December 2007
quotequote all
but the mail did come through after a fair delay: header info here:

<snip>



Edited by WTD on Monday 3rd December 09:07

TheLearner

6,962 posts

267 months

Saturday 1st December 2007
quotequote all
QMail??? Erk! Could be anything, potentially, I'd poke at the scanner and make sure what it's looking for is installed and is running. It could be sat waiting for something and once timed out... punting them to you.

spants

1,091 posts

259 months

Saturday 1st December 2007
quotequote all
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

JamieBeeston

9,294 posts

297 months

Saturday 1st December 2007
quotequote all
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)

On Exim this is controlled via a single -aliases file per domain, but as I say, I don't know your mailserver ;(

J

WTD

Original Poster:

818 posts

265 months

Saturday 1st December 2007
quotequote all
I can assure you it's not something I chose, exim's been mentioned? is that better? I guess the next question is how to stop qmail and start exmin?

WTD

Original Poster:

818 posts

265 months

Saturday 1st December 2007
quotequote all
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 wink

JamieBeeston

9,294 posts

297 months

Saturday 1st December 2007
quotequote all
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 wink
It's a totally different mailserver, which means to removal of the current one in it's entirety and the installation of this new one.

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

cyberface

12,214 posts

289 months

Saturday 1st December 2007
quotequote all
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 hehe (guess what I'm using now - much easier to control than qmail and vpopmail)

WTD

Original Poster:

818 posts

265 months

Sunday 2nd December 2007
quotequote all
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 frown

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??

zaktoo

805 posts

239 months

Sunday 2nd December 2007
quotequote all
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

JamieBeeston

9,294 posts

297 months

Sunday 2nd December 2007
quotequote all
zaktoo said:
If you want to know what mailserver you're running, the easiest option is

netstat -tanp | grep :25
or just telnet localhost 25 wink

J

WTD

Original Poster:

818 posts

265 months

Sunday 2nd December 2007
quotequote all
great thanks so it looks like exim right?

<snip>



Gonna do some more playing with this, gotta get it sorted as it's been about 3 weeks of scratching my head haha

Edited by WTD on Monday 3rd December 09:07

WTD

Original Poster:

818 posts

265 months

Sunday 2nd December 2007
quotequote all
JamieBeeston said:
zaktoo said:
If you want to know what mailserver you're running, the easiest option is

netstat -tanp | grep :25
or just telnet localhost 25 wink

J
so this says it's postfix?

<snip>



Edited by WTD on Monday 3rd December 09:08

zaktoo

805 posts

239 months

Sunday 2nd December 2007
quotequote all
WTD said:
great thanks so it looks like exim right?
Hey, at least Jamie can sort you out now smile

WTD

Original Poster:

818 posts

265 months

Sunday 2nd December 2007
quotequote all
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 smile

zaktoo

805 posts

239 months

Sunday 2nd December 2007
quotequote all
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.

JamieBeeston

9,294 posts

297 months

Sunday 2nd December 2007
quotequote all
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.
smile 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 wink

Your method also doesnt work on BSD smile

either way wink it's all gravy smile

J

JamieBeeston

9,294 posts

297 months

Sunday 2nd December 2007
quotequote all
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 smile
smile 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 smile 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

zaktoo

805 posts

239 months

Sunday 2nd December 2007
quotequote all
JamieBeeston said:
Your method also doesnt work on BSD smile
OP said Linux! Stop jiggling about! :P

Edit: Oops, maybe it was cyberface. WTD, is it BSD?

Edited by zaktoo on Sunday 2nd December 03:27