HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Problems with Webmail, ISPConfig, and Debian Sarge (http://www.howtoforge.com/forums/showthread.php?t=6533)

Spudchat 30th August 2006 18:32

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

Rocky 30th August 2006 18:44

What kind of internet connection are you using?
You might have to use a relayhost to send through your ISP's smtp server.

Spudchat 30th August 2006 18:47

I have a DSL line provided by SBC/Ameritech.

Rocky 30th August 2006 18:56

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)

Spudchat 30th August 2006 18:59

Allright thanks for the help. I'll check into that and see if it solved the problem.

Spudchat 30th August 2006 19:19

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.

Rocky 30th August 2006 19:57

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 id:pw

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)

Spudchat 30th August 2006 20:15

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.

Rocky 30th August 2006 20:26

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 id:pw

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)

Spudchat 30th August 2006 20:32

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.


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

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