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.
When attepting to send mail now I amm getting a message saying "Unable to connect to host mail.hingedmind.com. However, nothing in the logs.
I have gone over everything several times. Nothing is working... Also after I send, though I get an error it used to stay in the queue. Now I check the queue and nada...
I have noticed in looking through the above logs that there seems to be an authentication problem...
In going through the logs I have a couple of questions. What is getpeername and why the error writing?
Thanks
Jan 10 03:26:09 mind smbd[18443]: [2006/01/10 03:26:09, 0] lib/util_sock.c:send_smb(762)
Jan 10 03:26:09 mind smbd[18443]: Error writing 4 bytes to client. -1. (Connection reset by peer)
Jan 10 03:27:30 mind named[6039]: client 127.0.0.1#4507: query: wmail.ccsi.com IN AAAA
Jan 10 03:29:09 mind named[6039]: client 127.0.0.1#4508: query: wmail.ccsi.com IN AAAA
Jan 10 03:30:53 mind smbd[7033]: [2006/01/10 03:30:53, 0] lib/util_sock.c:get_peer_addr(1222)
Jan 10 03:30:53 mind smbd[7033]: getpeername failed. Error was Transport endpoint is not connected
Jan 10 03:30:53 mind smbd[18449]: [2006/01/10 03:30:53, 0] lib/util_sock.c:get_peer_addr(1222)
Jan 10 03:30:53 mind smbd[18449]: getpeername failed. Error was Transport endpoint is not connected
Jan 10 03:30:53 mind smbd[18449]: [2006/01/10 03:30:53, 0] lib/util_sock.c:write_data(554)
Jan 10 03:30:53 mind smbd[18449]: write_data: write failure in writing to client 0.0.0.0. Error Connection reset by peer
I also get this while sending.
Sending failed:
Could not connect to host mail.hingedmind.com
The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
The following transport protocol was used: sapient@hingedmind.com
Starting to go through the configuration files.... again.
I have noticed a few things that I am not sure if are related to the problem or not.
I cannot ping www.hingedmind.com by name or IP (times out), however, it is acessable through the URL.
I am not able to connect to localhost via browser (Connection refused), however I am able to connect using the server name i.e. http://mind/
This prevents web interface applications as in webadmin, samba, etc...
and of course telnet
mind:/usr/local # named-checkzone mail.hingedmind.com /var/lib/named/master/hingedmind.com.zone
dns_master_load: /var/lib/named/master/hingedmind.com.zone:2: ignoring out-of-zone data (mind.hingedmind.com)
dns_master_load: /var/lib/named/master/hingedmind.com.zone:9: ignoring out-of-zone data (mind.hingedmind.com)
dns_master_load: /var/lib/named/master/hingedmind.com.zone:10: ignoring out-of-zone data (hingedmind.com)
dns_master_load: /var/lib/named/master/hingedmind.com.zone:12: ignoring out-of-zone data (www.hingedmind.com)
dns_master_load: /var/lib/named/master/hingedmind.com.zone:13: ignoring out-of-zone data (hingedmind.com)
dns_master_load: /var/lib/named/master/hingedmind.com.zone:14: ignoring out-of-zone data (webmail.hingedmind.com)
dns_master_load: /var/lib/named/master/hingedmind.com.zone:15: ignoring out-of-zone data (securewebmail.hingedmind.com)
zone mail.hingedmind.com/IN: could not find NS and/or SOA records
zone mail.hingedmind.com/IN: has 0 SOA records
zone mail.hingedmind.com/IN: has no NS records
mind:/usr/local #
Also,
Any documentation on setting up the mail client as pop3 or smtp... perhaps I am setting that up wrong. I am using a mail client on the server(KMail).
mind:/usr/local # named-checkzone mail.hingedmind.com /var/lib/named/master/hingedmind.com.zone
zone mail.hingedmind.com/IN: loaded serial 2005030601
OK
mind:/usr/local # named-checkzone mind.hingedmind.com /var/lib/named/master/hingedmind.com.zone
zone mind.hingedmind.com/IN: loaded serial 2005030601
OK
Are there any other tests I can run to make sure that my DNS is correct?
What I did to get this far was add a forward on my router to port 25.
I am sure the password is correct. Look in database and it is stored plain.
Sending failed:
Authentication failed.
Most likely the password is wrong.
The server responded: "Error: authentication failed"
The message will stay in the 'outbox' folder until you either fix the problem (e.g. a broken address) or remove the message from the 'outbox' folder.
The following transport protocol was used:
smtp
an 10 10:16:02 mind postfix/smtpd[25792]: warning: 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]: SASL PLAIN authentication failed
Jan 10 10:16:02 mind postfix/smtpd[25792]: lost connection after AUTH from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:16:02 mind postfix/smtpd[25792]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:16:28 mind postfix/smtpd[25792]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:16:28 mind postfix/smtpd[25792]: warning: SASL authentication failure: Password verification failed
Jan 10 10:16:28 mind postfix/smtpd[25792]: warning: 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]: SASL PLAIN authentication failed
Jan 10 10:16:28 mind postfix/smtpd[25792]: lost connection after AUTH from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:16:28 mind postfix/smtpd[25792]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:16:53 mind postfix/smtpd[25792]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:17:21 mind postfix/smtpd[25792]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 10:18:51 mind postfix/smtpd[25771]: timeout after CONNECT from localhost[127.0.0.1]
Jan 10 10:18:51 mind postfix/smtpd[25771]: disconnect from localhost[127.0.0.1]
Jan 10 10:18:56 mind postfix/smtpd[25772]: timeout after END-OF-MESSAGE from quest.ccsi.com[216.236.168.11]
Jan 10 10:18:56 mind postfix/smtpd[25772]: disconnect from quest.ccsi.com[216.236.168.11]
Jan 10 10:21:24 mind postfix/anvil[25742]: statistics: max connection rate 3/60s for (smtp:24.176.227.138) at Jan 10 10:16:53
Jan 10 10:21:24 mind postfix/anvil[25742]: statistics: max connection count 1 for (smtp:127.0.0.1) at Jan 10 10:13:47
Jan 10 10:21:24 mind postfix/anvil[25742]: statistics: max cache size 3 at Jan 10 10:14:09
... and this log is filling up faster than I can keep up.
Jan 10 10:23:30 mind kernel: SFW2-INext-ACC-TCP IN=eth0 OUT= MAC=00:11:11:bd:57:1e:00:0f:b5:a9:be:8c:08:00 SRC=68.235.0.212 DST=10.0.0.10 LEN=64 TOS=0x00 PREC=0x00 TTL=111 ID=44379 DF PROTO=TCP SPT=3805 DPT=80 WINDOW=44620 RES=0x00 SYN URGP=0 OPT (020405B4010303030101080A000000000000000001010402)
Jan 10 10:23:30 mind kernel: SFW2-INext-ACC-TCP IN=eth0 OUT= MAC=00:11:11:bd:57:1e:00:0f:b5:a9:be:8c:08:00 SRC=24.176.227.138 DST=10.0.0.10 LEN=48 TOS=0x00 PREC=0x00 TTL=126 ID=57243 DF PROTO=TCP SPT=4305 DPT=80 WINDOW=65535 RES=0x00 SYN URGP=0 OPT (020405B401010402)
Just an update. It looks like something is working, perhaps not the right something... This is a result of me sending (trying) from the mail client on the mail server.
Mail Log:
Jan 10 18:37:10 mind postfix/smtpd[29441]: connect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 18:37:10 mind postfix/smtpd[29441]: lost connection after CONNECT from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 18:37:10 mind postfix/smtpd[29441]: disconnect from 24-176-227-138.static.snlo.ca.charter.com[24.176.227.138]
Jan 10 18:40:30 mind postfix/anvil[29442]: statistics: max connection rate 1/60s for (smtp:24.176.227.138) at Jan 10 18:37:10
Jan 10 18:40:30 mind postfix/anvil[29442]: statistics: max connection count 1 for (smtp:24.176.227.138) at Jan 10 18:37:10
Jan 10 18:40:30 mind postfix/anvil[29442]: statistics: max cache size 1 at Jan 10 18:37:10
Start with the dns settings..
Your zone file for hingedmind.com should start..
$TTL 3D
@ IN SOA hingedmind.com. postmaster.hingedmind.com. (
The value of the TTL should stay at 3 days, which is a general default. If a public dns server, eg ISP, caches your zone, it will generally set the TTL to 3D anyway, so unless you expect major number changes, make it 3D.
Your domain is hingedmind.com
So your zone file will show hosts that belong to this domain, so it needs to start with the basic domain, not the hostname.
The serial number must increment for every change you make, otherwise a client will see the old serial number and use cached data, which is before any changes. Then the zones changes need to be reloaded.
To test postfix, do
telnet 10.0.0.10 25
ehlo localhost
quit (to exit)
Look for STARTTLS and AUTH definitions in the 250 reply.
They are ESMTP functions that don't show with just using helo
To test courier, do
telnet 10.0.0.10 110
USER username
PASS password
STAT
LIST
QUIT (to exit)
While testing, keep an eye on logfiles with tail -f logfile
The error messages you have supplied are for several different server daemons, including samba and are not relevant.
Quote:
Jan 10 04:06:58 mind authdaemond: libauthpam.so: cannot open shared object file: No such file or directory
This error is important.
Look in /etc/pam.d/ for sasl and other files.
sasl can be set to use pam, but it looks like it should talk to mysql directly. Check it's config and/or fix pam, make sure it is installed properly.
Last edited by peter_robb; 01-11-2006 at 04:04 AM.
The serial number must increment for every change you make, otherwise a client will see the old serial number and use cached data, which is before any changes. Then the zones changes need to be reloaded.
Is the serial number incrementing something I need to do or is it just informational?
When setting up CYRUS SASL one of the flags was --without-pam \. I am assuming I am not using it. Of course that confuses me as to why pam is being used....
I looked in etc/pam.d and there are no sasl files.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.