LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2012, 07:20 AM   #1
afasoas
LQ Newbie
 
Registered: Oct 2012
Location: UK
Distribution: Ubuntu, Lubuntu
Posts: 16

Rep: Reputation: Disabled
N00b Here - Please ease my frustration - Ubuntu Mailserver / Postfix


Hi,

I've toyed around with linux a little in the past and now I'm really trying to get my hands dirty.

Right now I have a Synology DiskStation running busybox. It has a mailserver on it implemented using Postfix and Dovecote. When I had my own static IP this was fine and dandy. Now I'm living in a house share and unable to obtain a static IP it's no longer fine and dandy.

Please help me investigate and fix the problems I'm having.

I have a domain registered, say www.mydomain.co.uk. This has an mx record which forwards to a dyndns hostname, mynickname.is-ageek.co.uk. The dyndns hostname is synchronised with my isp provided dynamic ip.

The DiskStation is sat behind a router which in turn is set behind another router. This is to give my own network privacy and firewalling from the rest of the household.

Both routers port forward/NAT to the Diskstation.

I am able to send/receive email from an Outlook client and so long as I'm sending from/to the same account (myname@mydomain.co.uk) it works fine. I can also telnet into SMTP server (mail.mydomain.co.uk:25) and send a test email.

So although I can receive email sent from the server, I cannot receive email sent from other email accounts. In fact, several hours later I get this response returned from an alternate sending account:

Code:
This message was created automatically by mail delivery software.
A message that you sent has not yet been delivered to one or more of its recipients after more than 6 hours on the queue on mail10.atlas.pipex.net.

The message identifier is:     1TQ7Tk-0000pK-Qr
The subject of the message is: test
The date of the message is:    Mon, 22 Oct 2012 03:10:58 +0100

The address to which the message has not yet been delivered is:

  myname@mydomainname.co.uk

No action is required on your part. Delivery attempts will continue for some time, and this warning may be repeated at intervals if the message remains undelivered. Eventually the mail delivery software will give up, and when that happens, the message will be returned to you.
I'm guessing the mail queue is the senders mail queue? I'm figuring this problem is down to postfix config, but I've no idea which part. I've turned soft bouncing on but to no avail.

I get the impression I'm making a very basic mistake somewhere here. I'm more than happy to provide copies of config files later on today, but in the mean time I would more than appreciate some pointers.

The neighbors house was broken into the other night and ours was done a wee while ago. I'm trying to setup surveillance using webcam using Motion and I'd like the mailserver working so that Motion can send stills to a gmail account that, in the even of any incident occurring, can be checked.

Motion is running on a separate box and will using the diskstation as a relayhost. (Which in turn will relay to a smarthost). Whilst I appreciate I can probably work around these issues, I'd like to know how to do this properly.

Thanks
David

Last edited by afasoas; 10-22-2012 at 07:36 AM.
 
Old 10-22-2012, 08:01 AM   #2
merijnofiets
LQ Newbie
 
Registered: Sep 2010
Location: Amsterdam
Distribution: Arch linux
Posts: 11

Rep: Reputation: 0
Dear David,

Does the postfix logging give any message about not accepting the test mail?

merijn
 
Old 10-22-2012, 08:12 AM   #3
afasoas
LQ Newbie
 
Registered: Oct 2012
Location: UK
Distribution: Ubuntu, Lubuntu
Posts: 16

Original Poster
Rep: Reputation: Disabled
Thanks Merijn,
There was something... SMTP/TCP servce not found/running or something along those lines. I'll post the logs up when I get home.
 
Old 10-23-2012, 06:14 PM   #4
afasoas
LQ Newbie
 
Registered: Oct 2012
Location: UK
Distribution: Ubuntu, Lubuntu
Posts: 16

Original Poster
Rep: Reputation: Disabled
Well the short answer is that I can't really find anything of note in the logs...apart from the occasional message (I think it's a spurious red herring) which says "unable to connect to FTP server". I need to work out how logging is configured..

Anyhow, found this in this in one of my inboxes today which is a good clue:

Code:
This is an automatically generated Delivery Status Notification

THIS IS A WARNING MESSAGE ONLY.

YOU DO NOT NEED TO RESEND YOUR MESSAGE.

Delivery to the following recipient has been delayed:

     user@mydomain.co.uk

Message will be retried for 2 more day(s)

Technical details of temporary failure: 
The recipient server did not accept our requests to connect. Learn more at http://support.google.com/mail/bin/a...py?answer=7720 
[(0) mydomain.co.uk. [some ip address]:25: Connection timed out]

I am sure
Code:
mydomain.co.uk
above should be prefixed by
Code:
mail
and the IP returned is not the IP of my mail server but the IP of my web host. So somethings definitely not resolving properly. I have an MX record setup which pints to mail.mynickname.isa-geek.com and that forwards to my dynamic ip courtesy of dynDNS.

Is there some reason that MX record would not get picked up?
 
Old 10-23-2012, 06:26 PM   #5
afasoas
LQ Newbie
 
Registered: Oct 2012
Location: UK
Distribution: Ubuntu, Lubuntu
Posts: 16

Original Poster
Rep: Reputation: Disabled
Plot thickening.

Typing my domain into http://www.aboutmyip.com/AboutMyXApp...ServerTest.jsp tells me my MX record is not found in the DNS when I clearly have one setup.

:/
 
Old 10-24-2012, 02:04 AM   #6
afasoas
LQ Newbie
 
Registered: Oct 2012
Location: UK
Distribution: Ubuntu, Lubuntu
Posts: 16

Original Poster
Rep: Reputation: Disabled
This was my own fault.
I needed to remove the subdomain from my mx record.

"mydomain.co.uk", not "mail.my.domain.co.uk"

Whoops!
 
Old 10-24-2012, 05:45 AM   #7
merijnofiets
LQ Newbie
 
Registered: Sep 2010
Location: Amsterdam
Distribution: Arch linux
Posts: 11

Rep: Reputation: 0
So does this mean your email is getting through now?
 
Old 10-24-2012, 04:10 PM   #8
afasoas
LQ Newbie
 
Registered: Oct 2012
Location: UK
Distribution: Ubuntu, Lubuntu
Posts: 16

Original Poster
Rep: Reputation: Disabled
Yes it is, thank you for asking merjnofiets.

I have a new thread for my latest problem:
http://www.linuxquestions.org/questi...on-4175433915/

I'm sure I will solve it before too long though!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Frustration and confusion over setting up a Postfix mail server on my Ubuntu server. dag10 Linux - Server 5 04-17-2011 10:16 AM
Postfix: cant send email from my Windows pc using my postfix mailserver elvisious Linux - Software 8 08-01-2008 07:01 PM
status=bounced in Postfix/Cyrus on Ubuntu mailserver setup thomasJohansen Linux - Server 7 01-07-2007 11:07 AM
n00b: mailserver & mx records wwnexc Linux - Networking 1 10-20-2005 02:34 PM
need help with Postfix mailserver Lleb_KCir Linux - Software 1 03-31-2004 11:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration