Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 30th August 2006, 19:32
Spudchat Spudchat is offline
Member
 
Join Date: Aug 2006
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Default Problems with Webmail, ISPConfig, and Debian Sarge

Hello! First of all I would like to say thanks to the authors of ISPConfig and the Debian Sarge Perfect Tut for the good work they've done. They are both quite nice and work well.

Next I would like to ask for some help. After the install I enabled the webmail as per the instructions from the website. Next I enabled the maildir option in ISPConfig and logged in to UebiMiau. The problem is that I can recieve mail perfectly, but I can't send mail. The error I keep getting in /var/log is

Code:
Aug 30 11:21:16 klusterphuck postfix/smtp[4998]: connect to alt2.gmail-smtp-in.l.google.com[64.233.183.114]: Connection timed out (port 25)
Aug 30 11:21:46 klusterphuck postfix/smtp[4998]: connect to alt1.gmail-smtp-in.l.google.com[64.233.185.27]: Connection timed out (port 25)
Aug 30 11:22:16 klusterphuck postfix/smtp[4998]: connect to gsmtp163.google.com[64.233.163.27]: Connection timed out (port 25)
Aug 30 11:22:46 klusterphuck postfix/smtp[4998]: connect to gsmtp183.google.com[64.233.183.27]: Connection timed out (port 25)
Aug 30 11:22:46 klusterphuck postfix/smtp[4998]: 3F83369C05D: to=<spudchat@gmail.com>, relay=none, delay=2507, status=deferred (connect to gsm
tp183.google.com[64.233.183.27]: Connection timed out)

I thought it was a port forwarding issue maybe, but all the ports it needs are open. Any advice would be greatly appreciated.

Spud
Reply With Quote
Sponsored Links
  #2  
Old 30th August 2006, 19:44
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

What kind of internet connection are you using?
You might have to use a relayhost to send through your ISP's smtp server.
Reply With Quote
  #3  
Old 30th August 2006, 19:47
Spudchat Spudchat is offline
Member
 
Join Date: Aug 2006
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Default

I have a DSL line provided by SBC/Ameritech.
Reply With Quote
  #4  
Old 30th August 2006, 19:56
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

I beleive the problem is you would have to use smtp.ameritech.net, or whatever smtp server address you were provided, as your relayhost in /etc/postfix/main.cf.

Example below:
relayhost = smtp.ameritech.net (or whatever smtp address you were provided)
Reply With Quote
  #5  
Old 30th August 2006, 19:59
Spudchat Spudchat is offline
Member
 
Join Date: Aug 2006
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Default

Allright thanks for the help. I'll check into that and see if it solved the problem.
Reply With Quote
  #6  
Old 30th August 2006, 20:19
Spudchat Spudchat is offline
Member
 
Join Date: Aug 2006
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Default

Allright I think you pointed me in the right direction. This is the message I get now in /var/log/mail.log. It would appear that I would need to figure out how to make the server provide some authentication info to the relay or am I totally off base?

Code:
Aug 30 12:05:09 klusterphuck postfix/smtp[5800]: ED85C69C076: to=<spudchat@gmail.com>, relay=smtp.ameritech.yahoo.com[68.142.229.41], delay=1, status=bounced (host smtp.ameritech.yahoo.com[68.142.229.41] said: 530 authentication required - for help go to http://help.yahoo.com/help/us/sbc/dsl/mail/pop/pop-11.html (in reply to MAIL FROM command))
The link that they provided only talked about configuring other programs to send mail through their servers.
Reply With Quote
  #7  
Old 30th August 2006, 20:57
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default SMTP AUTH clear method

Before proceeding with the following steps, please make a backup of /etc/postfix/main.cf and /etc/postfix/sasl.

This is the SMTP-AUTH clear text method:

In /etc/postfix/main.cf, make sure you have the following:

smtp_sasl_password_maps = hash:/etc/postfix/sasl

You now need to edit the Postfix "/etc/postfix/sasl" file and hash it. The format of the sasl file is:

host idw

The host portion above must match what you used in the "relayhost" line in main.cf. Something as follows:

smtp.ameritech.yahoo.com myid:mypw (your userid and password)

Save the file.

Hash the file.
[root@linux.com] postmap sasl

Restart postfix
[root@linux.com] /etc/init.d/postfix restart

Once you restart Postfix, send a test message through it, and you should see a line in /var/log/mail log similar to:

to=< jsmith@example.com >, relay=smtp.ameritech.yahoo.com[1.2.3.4], delay=1, status=sent (250 ok 1234567891 qp 12345)
Reply With Quote
  #8  
Old 30th August 2006, 21:15
Spudchat Spudchat is offline
Member
 
Join Date: Aug 2006
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
Default

I edited the main.cf file just fine, but I don't have a file that is called /etc/postfix/sasl. That is a directory. Inside of it I found a file called smtpd.conf and that is where I added the line
smtp.ameritech.yahoo.com myid:mypw with my info.

BTW, I didn't have anything that resembled the line smtp_sasl_password_maps = hash:/etc/postfix/sasl in main.cf so I inserted it at the bottom of the file.

After that I hashed it and restarted the two services and something went horribly wrong. This is the error I get:

Code:
Aug 30 13:06:52 klusterphuck postfix/smtpd[6899]: fatal: SASL per-process initialization failed
Aug 30 13:06:53 klusterphuck postfix/master[6772]: warning: process /usr/lib/postfix/smtpd pid 6899 exit status 1
Aug 30 13:06:53 klusterphuck postfix/master[6772]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
These warning keep repeating themselves over and over in the log file about every one minute as well.
Reply With Quote
  #9  
Old 30th August 2006, 21:26
Rocky Rocky is offline
Senior Member
 
Join Date: Oct 2005
Posts: 553
Thanks: 14
Thanked 49 Times in 48 Posts
Default

Try the following:
Revert everything back to it's original form, then proceed with the following.

This is the SMTP-AUTH clear text method:

Postfix needs to know how to behave as a SASL client. Add the following lines anywhere you'd like in your /etc/postfix/main.cf

relayhost = smtp.ameritech.yahoo.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/saslpw
smtp_sasl_security_options =

If you already have those lines, then you're set, if not, add them. Make sure you don't have any duplicates.

Create a file called /etc/postfix/saslpw and add the following, using the syntax provided:

host idw

The host portion above must match what you used in the "relayhost" line in main.cf. Something as follows:

smtp.ameritech.yahoo.com myid:mypw (your userid and password)

Save the file.

Hash the file.
[root@linux.com] postmap /etc/postfix/saslpw

Restart postfix
[root@linux.com] /etc/init.d/postfix restart

Once you restart Postfix, send a test message through it, and you should see a line in /var/log/mail log similar to:

to=< jsmith@example.com >, relay=smtp.ameritech.yahoo.com[1.2.3.4], delay=1, status=sent (250 ok 1234567891 qp 12345)
Reply With Quote
  #10  
Old 30th August 2006, 21:32
Spudchat Spudchat is offline
Member
 
Join Date: Aug 2006
Posts: 32
Thanks: 1
Thanked 1 Time in 1 Post
 
Default

Rocky, thank you so very much for your help. That last post fixed it for me. I couldn't have done it without you.

Spud
spud{AT}spudsplace[DOT]org (now thanks to you )

This address has been munged to protect the innocent.

Last edited by Spudchat; 31st December 2006 at 23:04.
Reply With Quote
Reply

Bookmarks

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
Running Joombla CMS on Debian Sarge 3.1 with ISPConfig Hans Installation/Configuration 6 13th March 2006 19:00
Debian Sarge, ISPConfig, perfect setup followed, email can't login! Zoon Installation/Configuration 3 12th February 2006 21:58
e-mail problem!!! Debian 3.1 maroonworks Installation/Configuration 18 6th December 2005 15:42
ISPConfig setup error with Debian Sarge Rocky Installation/Configuration 13 11th November 2005 01:47
Problems installing ISPConfig Debian Sarge hschel Server Operation 4 22nd August 2005 20:46


All times are GMT +2. The time now is 07:13.


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