View previous topic :: View next topic |
Author |
Message |
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Sun Nov 16, 2003 8:34 pm Post subject: Can send, but not recieve mail (server) *fixed |
|
|
I've had a mail server running for a few years, mostly without problem. Recently after an update to software, the mail server has stopped being able to recieve mail sent from non-local domains. I'm not sure which update, since the e-mail accounts on this system are rarely used, and I didn't notice anything was wrong until someone tried to send me a message and complained that it got bounced back to them.
I'm using Postfix and Courier-IMAP as is described in one of the howtos on the main gentoo site. I'm really not sure which configuration file I should be looking for an error in, and from what I can tell, they look unchanged from when the server was working properly. I can still send mail to external domains without error.
Please let me know which configuration files I should be looking for errors in, and/or posting here.
Last edited by Naughtyus on Tue Nov 18, 2003 3:20 am; edited 1 time in total |
|
Back to top |
|
|
eelcogelton n00b
Joined: 27 Aug 2002 Posts: 24 Location: Holland
|
Posted: Mon Nov 17, 2003 9:52 am Post subject: |
|
|
check or post your 'RECEIVING MAIL' section in /etc/postfix/main.cf, and the settings of the variables pointed to there... |
|
Back to top |
|
|
dogghaus n00b
Joined: 17 Nov 2003 Posts: 58
|
Posted: Mon Nov 17, 2003 10:00 pm Post subject: |
|
|
Try checking your master.cf file. I use Cyrus-IMAP as my LDA, and the newer version 2.x of Postfix requires a different syntax for the local transport for Cyus. Courier I am not sure of, but it's a place to start. Also, CHECK THE LOGS, they will tell you what trouble you are having (ex. name not found, no local transport available, etc). |
|
Back to top |
|
|
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Tue Nov 18, 2003 12:58 am Post subject: |
|
|
main.cf:
Code: |
##RECEIVING MAIL
# The inet_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on. By default,
# the software claims all active interfaces on the machine. The
# parameter also controls delivery of mail to user@[ip.address].
#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain |
I don't see anything wrong with that - it all seems applicable.
master.cf
Code: | # ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
#628 inet n - - - - qmqpd
pickup fifo n - - 60 1 pickup
cleanup unix n - - - 0 cleanup
qmgr fifo n - - 300 1 qmgr
#qmgr fifo n - - 300 1 nqmgr
rewrite unix - - - - - trivial-rewrite
bounce unix - - - - 0 bounce
defer unix - - - - 0 bounce
flush unix n - - 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - - - - showq
error unix - - - - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/sbin/cyrdeliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
#cyrus unix - n n - - pipe
# user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix - n n - 2 pipe
flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
# only used by postfix-tls
#tlsmgr fifo - - n 300 1 tlsmgr
#smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587 inet n - n - - smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
|
I'm not sure what to think about this one.. As I said, I don't use Cyrus, but Courier instead. Any suggestions? |
|
Back to top |
|
|
dogghaus n00b
Joined: 17 Nov 2003 Posts: 58
|
Posted: Tue Nov 18, 2003 1:43 am Post subject: |
|
|
Again, I would check the logs, and what kind of bounce message was it? Was it from the Postfix program? If so, postfix receiving mail is not your problem, it just isn't sure where to send it. There are a lot of steps along the way to ending up in a mailbox, somewhere it's getting dropped.
A sample of my postfix log when I give it a bogus address:
=============
Nov 17 17:35:09 animal postfix/pipe[2252]: 08229BD93: to=<none@animal.domain.com>, orig_to=<none>, relay=cyrus, delay=2, status=bounced (data format error. Command output: none: Mailbox does not exist )
=============
And the bounce message:
=============
This is the Postfix program at host animal.domain.com.
I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.
--snip--
Reporting-MTA: dns; animal.domain.com
Arrival-Date: Mon, 17 Nov 2003 17:35:06 -0800 (PST)
Final-Recipient: rfc822; none@animal.domain.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; data format error. Command output: none: Mailbox does not exist
=============
I don't think the bogus address is your problem, but it's an example. Start with the bounce message, then the logs, and work your way back.
About the master.cf; the courier documentation should state the proper line for the postfix local delivery in the master.cf. |
|
Back to top |
|
|
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Tue Nov 18, 2003 2:25 am Post subject: |
|
|
my domain is 'gleneaglemusic.net', and my ISP is telus.net .
I send a message from 'adrian@gleneaglemusic.net' to 'aroliver@telus.net' without error. I send a message from 'aroliver@telus.net' to 'adrian@gleneaglemusic.net' and after a few days, I get this message in my telus.net inbox:
Quote: | From: TELUS Mail Administrator <helpdesk@telus.net>
To: aroliver@telus.net
Reply-To: TELUS Mail Administrator <helpdesk@telus.net>
Subject: Your Message Could Not Be Delivered
Date: Tue, 11 Nov 2003 05:31:02 -0700
Reporting-MTA: dns; priv-edtnes56.telusplanet.net
Arrival-Date: Thu, 6 Nov 2003 21:23:35 -0700
Received-From-MTA: dns; adesktop (66.183.15.80)
Final-Recipient: RFC822; <adrian@gleneaglemusic.net>
Action: failed
Status: 4.4.7
Remote-MTA: dns; gleneaglemusic.net |
Last edited by Naughtyus on Tue Nov 18, 2003 2:32 am; edited 1 time in total |
|
Back to top |
|
|
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Tue Nov 18, 2003 2:32 am Post subject: |
|
|
*gah*
Okay, I think I found the problem.
Port 110 appears as closed on the server if I go to grc.com and run ShieldsUp.
I can't find postfix's logs.. They should be in /var/logs somewhere, right? |
|
Back to top |
|
|
dogghaus n00b
Joined: 17 Nov 2003 Posts: 58
|
Posted: Tue Nov 18, 2003 2:38 am Post subject: |
|
|
On my redhat box, they are in the standard log directory /var/log, in a file named maillog.
I just sent you an email from my home mail server. I haven't received an autoreply yet, but when I do I'll see if anything seems strange.
Are you sure your DNS people (web-forward.dnsexit.com) are forwarding port 25 (SMTP) as well? |
|
Back to top |
|
|
dogghaus n00b
Joined: 17 Nov 2003 Posts: 58
|
Posted: Tue Nov 18, 2003 2:41 am Post subject: |
|
|
You want port 25 to be open, that's the smtp incoming port. 110 is pop3, that's your outgoing port and it should be blocked. |
|
Back to top |
|
|
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Tue Nov 18, 2003 3:09 am Post subject: |
|
|
Thx, I guess I was just getting my services confused.
25 is open (do a portscan on 'gleneaglemusic.net')
All ports of 'gleneaglemusic.net' are forwarded to the server. |
|
Back to top |
|
|
Naughtyus Guru
Joined: 14 Jul 2002 Posts: 463 Location: Vancouver, BC
|
Posted: Tue Nov 18, 2003 3:20 am Post subject: |
|
|
Ugh..
/var/log/mail.log
damn thats ugly.
Okay, I fixed it. I had a setting in /etc/hosts that postfix didn't like.
Thank you! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|