Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The serial number is the most important bit in the zone file.
It tells a client that downloads the zone that the data is current or not.
If the last time a client looked at the zone and got a serial number 2005030601 and then looked at it again 3 days later and got the same serial number, it says the file hasn't changed and uses it's old cached data.
Each time you alter the zone file, increment the last 2 digits by one and then restart/reload bind. If the date changes, use the current date and 01 for the first change of that day, eg 2006011101 for today.
I suppose I need glasses! The logfile says authdaemond is looking for the pam file, and authdaemond belongs to Courier.. Check pam is installed correctly, reinstall if necessary. Courier may be looking for a different version of libauthpam.so (which is just a link to the correct version). Did you build courier-imap or was it from a package?
<edit> Why is Courier using pam for authentication when you have mysql?
Last edited by peter_robb; 01-11-2006 at 07:03 AM.
The serial number is the most important bit in the zone file.
It tells a client that downloads the zone that the data is current or not.
If the last time a client looked at the zone and got a serial number 2005030601 and then looked at it again 3 days later and got the same serial number, it says the file hasn't changed and uses it's old cached data.
Each time you alter the zone file, increment the last 2 digits by one and then restart/reload bind. If the date changes, use the current date and 01 for the first change of that day, eg 2006011101 for today.
I suppose I need glasses! The logfile says authdaemond is looking for the pam file, and authdaemond belongs to Courier.. Check pam is installed correctly, reinstall if necessary. Courier may be looking for a different version of libauthpam.so (which is just a link to the correct version). Did you build courier-imap or was it from a package?
cd /usr/local
wget -c http://easynews.dl.sourceforge.net/s...-4.0.2.tar.bz2
tar jxf courier-imap-4.0.2.tar.bz2
cd courier-imap-4.0.2
./configure --enable-workarounds-for-imap-client-bugs \
--with-authchangepwdir --enable-unicode --with-trashquota
make
make install
make install-configure
I went in and changed the serial number on both of the zone files.
"0.0.10.in-addr.arpa.zone"
$TTL 3D
@ IN SOA hingedmind.com. postmaster.hingedmind.com. (
2006011101 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS mind.hingedmind.com.
1 IN PTR mind.hingedmind.com.
and
"hingedmind.com.zone"
I have been modifying this like no tomorrow...
$TTL 3D
@ IN SOA hingedmind.com. postmaster.hingedmind.com. (
2006011101 ; serial
7200 ; refresh
7200 ; retry
604800 ; expire
86400 ) ; minimum
IN NS mind
IN MX 5 mind
mind IN A 10.0.0.10
hingedmind.com. IN A 10.0.0.10
mail.hingedmind.com. IN A 10.0.0.10 www.hingedmind.com. IN A 10.0.0.10
hingedmind.com. IN MX 5 mail.hingedmind.com.
webmail.hingedmind.com. IN A 10.0.0.10
securewebmail.hingedmind.com. IN A 10.0.0.11
After looking at the instructions you were following, it describes using mysql as the database, which means pam isn't required.
So courier-authlib needs to be
$cd courier-authlib-0.55
$./configure \
--with-mysql-libs=/usr/local/mysql/lib/mysql\
--with-mysql-includes=/usr/local/mysql/include/mysql/ \
--with-authmysql --with-authmysql=yes
and courier-imap needs authmodulelist="authmysql authpam" in authdaemonrc
This will then choose pam if mysql isn't available.
I also put you wrong about the dns setup. Must have put too much sugar in my tea, sorry..
The SOA line in the zone file does have the hostname of the server..
And named.conf only has the domain name in the zone name..
How many changes from the installation guide did you need to make? (File locations etc..)
After looking at the instructions you were following, it describes using mysql as the database, which means pam isn't required.
So courier-authlib needs to be
$cd courier-authlib-0.55
$./configure \
--with-mysql-libs=/usr/local/mysql/lib/mysql\
--with-mysql-includes=/usr/local/mysql/include/mysql/ \
--with-authmysql --with-authmysql=yes
and courier-imap needs authmodulelist="authmysql authpam" in authdaemonrc
This will then choose pam if mysql isn't available.
I also put you wrong about the dns setup. Must have put too much sugar in my tea, sorry..
The SOA line in the zone file does have the hostname of the server..
And named.conf only has the domain name in the zone name..
How many changes from the installation guide did you need to make? (File locations etc..)
My gut is telling me DNS is the issue.
I have made a few changes as outlined below. Loaded Courier, postfix manually and followed it to the "T", which it appars to be fine. There were some location changes because I run SuSE. I had mysql, php4, apache, cyrus, berkeley, and openssl already loaded.
I have modified and dns zone files and... opened a forward for port 25 on my router. Which made a difference....
This is very different from the mail log...
an 12 04:58:57 mind postfix/smtpd[24556]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 04:58:57 mind postfix/smtpd[24556]: lost connection after CONNECT from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 04:58:57 mind postfix/smtpd[24556]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 05:02:17 mind postfix/anvil[24693]: statistics: max connection rate 3/60s for (smtp:24.176.227.138) at Jan 12 04:58:57
Jan 12 05:02:17 mind postfix/anvil[24693]: statistics: max connection count 1 for (smtp:24.176.227.138) at Jan 12 04:58:36
Jan 12 05:02:17 mind postfix/anvil[24693]: statistics: max cache size 1 at Jan 12 04:58:36
Perhaps trying to simplify toooo much?
hingedmind.com.zone
$TTL 3D
@ IN SOA mind.hingedmind.com. postmaster.hingedmind.com. (
2006011203 ; serial
7200 ; refresh
7200 ; retry
604800 ; expire
86400 ) ; minimum
IN NS mind
IN MX 5 mail.hingedmind.com
localhost. IN A 127.0.0.1
mind. IN A 10.0.0.10
mail IN A 10.0.0.10
0.0.10.in-addr.arpa.zone
$TTL 3D
@ IN SOA mind.hingedmind.com. postmaster.hingedmind.com. (
2006011205 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS hingedmind.com.
1 IN PTR hingedmind.com.
;; ANSWER SECTION:
hingedmind.com. 2205 IN A 24.176.227.138
hingedmind.com. 2234 IN NS NS57.WORLDNIC.com.
hingedmind.com. 2234 IN NS NS58.WORLDNIC.com.
;; AUTHORITY SECTION:
hingedmind.com. 2234 IN NS NS57.WORLDNIC.com.
hingedmind.com. 2234 IN NS NS58.WORLDNIC.com.
It's now refusing email addresses.
It rejects postmaster@ and root@ so I suspect the connection to mysql needs checking.
RCPT TO:<postmaster@hingedmind.com>
550 <postmaster@hingedmind.com>: Recipient address rejected: User unknown in vir tual mailbox table
RCPT TO:<root@hingedmind.com>
550 <root@hingedmind.com>: Recipient address rejected: User unknown in virtual m ailbox table
Yes, they have not been configured. I sent an email out as root and root does not have a mailbox, etc... Not sure why postmaster got involved unless the SOA record has something to do with it. I will just change the SOA to read a defined user mail box.
In the client (KMail) I setup for smtp and set the username and password. I get a failur for authentication. Double checked my database and everything is correct.
Jan 12 07:15:24 mind postfix/smtpd[11831]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:15:24 mind postfix/smtpd[11831]: warning: SASL authentication failure: Password verification failed
Jan 12 07:15:24 mind postfix/smtpd[11831]: warning: 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]: SASL PLAIN authentication failed
Jan 12 07:15:24 mind postfix/smtpd[11831]: lost connection after AUTH from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:15:24 mind postfix/smtpd[11831]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:16:29 mind postfix/smtpd[11831]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:16:29 mind postfix/smtpd[11831]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:16:44 mind postfix/smtpd[11831]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:16:44 mind postfix/smtpd[11831]: warning: SASL authentication failure: Password verification failed
Jan 12 07:16:44 mind postfix/smtpd[11831]: warning: 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]: SASL PLAIN authentication failed
Jan 12 07:16:44 mind postfix/smtpd[11831]: lost connection after AUTH from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 12 07:16:44 mind postfix/smtpd[11831]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
$TTL 3D
@ IN SOA mind.hingedmind.com. sapient.hingedmind.com. (
2006011209 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum
IN NS mind.hingedmind.com.
1 IN PTR gw.hingedmind.com.
2 IN PTR mind.hingedmind.com.
3 IN PTR mail.hingedmind.com.
4 IN PTR ftp.hingedmind.com.
$TTL 3D
@ IN SOA mind.hingedmind.com. sapient.hingedmind.com. (
2006011211 ; serial
7200 ; refresh
7200 ; retry
604800 ; expire
86400 ) ; minimum
IN NS mind
IN MX 10 mail.hingedmind.com.
localhost IN A 127.0.0.1
gw IN A 10.0.0.1
TXT "The router"
mind IN A 10.0.0.10
IN MX 10 mail.hingedmind.com.
www CNAME mind
mail IN A 10.0.0.10
IN MX 10 mail.hingedmind.com.
ftp IN A 10.0.0.10
IN MX 10 mail.hingedmind.com.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.