#1  
Old 12th August 2012, 11:56
Wsbs9GC Wsbs9GC is offline
Member
 
Join Date: Aug 2012
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Default Sending Mail Via Postfix Woes

Hello there. I recently installed ubuntu and ispconfig3 following one of those "perfect server" guides. Everything appeared to go smoothly. However, when connecting to my email accounts on the server through thunderbird, I can receive email but cannot send email. I can send and receive email via the webmail webpage. Postfix is operating on port 587 as I'm on comcast and that's what they require for outgoing mail. The error that I get in /var/log/mail.log:
Quote:
Aug 12 05:40:01 www postfix/smtpd[27096]: connect from localhost.localdomain[127.0.0.1]
Aug 12 05:40:01 www dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 12 05:40:01 www dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 12 05:40:01 www postfix/smtpd[27096]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 12 05:40:01 www postfix/smtpd[27096]: disconnect from localhost.localdomain[127.0.0.1]
Aug 12 05:45:01 www dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 12 05:45:01 www postfix/smtpd[27164]: connect from localhost.localdomain[127.0.0.1]
Aug 12 05:45:01 www dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 12 05:45:01 www postfix/smtpd[27164]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 12 05:45:01 www postfix/smtpd[27164]: disconnect from localhost.localdomain[127.0.0.1]
and the error that I get in thunderbird:
Quote:
Sending of message failed.
The message could not be sent because the connection to SMTP server mail.domain.com [yes, this has my real domain not a dummy] was lost in the middle of the transaction. Try again or contact your network administrator.
I imagine that it's a misconfiguration of dovecot or postfix but as I'm new to linux and system administration, I have no clue regarding how to fix the issue or how to go about troubleshooting the issue.

Any advice on the issue is greatly appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 13th August 2012, 16:25
Sir Henry Sir Henry is offline
Member
 
Join Date: Jan 2012
Posts: 51
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Is this a server on the internet or your home PC?

You are not showing any log lines that would be related to an incoming SMTP connection from an external host. On the other hand, are you sure that the name 'mail.domain.com' (replace with your name) gets mapped to your server? You said you can receive mail but there are no connections from outside in your log snippet.
__________________
Cheers, Sir Henry
Reply With Quote
  #3  
Old 14th August 2012, 01:06
Wsbs9GC Wsbs9GC is offline
Member
 
Join Date: Aug 2012
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Default

This is a server on my home LAN. I was running thunderbird from another machine in my LAN. As far as relevant log lines, what log should I post the contents of (or at least a cat | tail )? I'm new to linux and server administration and started this as a hobby so any guidance is greatly appreciated. My mynetworks parameter in /etc/postfix/main.cf which I believe might be relevant is
Quote:
mynetworks = 127.0.0.0/8 [::1]/128
I have tried adding 192.168.1.0/24 to this variable thinking that perhaps no auth attempts were made because they never made it to the auth daemon due to being blocked by this parameter and noticed no difference. I have since reverted my addendum.

What else can I try and what logs should I be looking at?
Reply With Quote
  #4  
Old 14th August 2012, 10:26
Sir Henry Sir Henry is offline
Member
 
Join Date: Jan 2012
Posts: 51
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Well, 127.0.0.1 is the localhost address, and 192.168.1.x is your network. In your log there is no login attempt from a 192.168.1.x address.

What is the address you are trying to connect to from the client PC?
__________________
Cheers, Sir Henry
Reply With Quote
  #5  
Old 14th August 2012, 10:28
Wsbs9GC Wsbs9GC is offline
Member
 
Join Date: Aug 2012
Posts: 36
Thanks: 1
Thanked 0 Times in 0 Posts
Default

The LAN IP of my server is 192.168.1.9 and the LAN IP of the machine which I'm running thunderbird on is 192.168.1.7.

Edit: I think it's also important to know that I am accessing my server through the MX record of my domain, not the lan address of the server machine.

Last edited by Wsbs9GC; 14th August 2012 at 10:36.
Reply With Quote
  #6  
Old 14th August 2012, 10:40
Sir Henry Sir Henry is offline
Member
 
Join Date: Jan 2012
Posts: 51
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Yes that is important, because it might not resolve correctly. Have you tried to replace the host name with the IP address?
__________________
Cheers, Sir Henry
Reply With Quote
Reply

Bookmarks

Tags
dovecot, postfix, sending mail

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Catchall and Forwarding not working simmo General 6 22nd March 2014 00:54
Postfix Timeout after DATA from some emails treeman Server Operation 13 25th September 2013 12:51
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
Email being accepted but not delivered punto Installation/Configuration 8 25th May 2011 00:13
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 12:23


All times are GMT +2. The time now is 00:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.