Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 15th August 2011, 09:24
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Quote:
Aug 7 18:56:13 isp postfix/smtpd[26236]: maps_find: canonical_maps: @kateslab.com: not found
Aug 7 18:56:13 isp postfix/smtpd[26236]: mail_addr_find: katiij@kateslab.com -> (not found)
Are you sure that the mailbox exists?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 15th August 2011, 13:28
pchelp2u pchelp2u is offline
Junior Member
 
Join Date: Aug 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes, I am sure the mailbox exists.
I can successfully log in to SquirrelMail from anywhere and view the inbox and send mail.
I can successfully send and receive mail INTERNALLY, that is, to and from katiijATkateslabDOTcom and testATkateslabDOTcom. I can also successfully send mail via telnet, internally only.
If I telnet in from outside the network, I get "Please try again later."
Quote:
220 mail.kateslab.com ESMTP Postfix
ehlo mail.kateslab.com
250-mail.kateslab.com
250-SIZE
250-VRFY
250-AUTH PLAIN LOGIN
250 DSN
mail from: cjurkowskiATpchelp2uDOTcom
250 2.1.0 Ok
rcpt to: katiijATkateslabDOTcom
250 2.1.5 Ok
data
354 Start mail input; end with <CRLF>.<CRLF>
testing from pchelp2u.com
.
451 Please try again later
vs
Quote:
[root@isp ~]# telnet mail.kateslab.com 25
Trying 69.17.24.179...
Connected to mail.kateslab.com (69.17.24.179).
Escape character is '^]'.
220 mail.kateslab.com ESMTP Postfix
ehlo mail.kateslab.com
250-mail.kateslab.com
250-PIPELINING
250-SIZE
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from: cjurkowskiATpchelp2uDOTcom
250 2.1.0 Ok
rcpt to: katiijATkateslabDOTcom
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
from kateslab.com
.
250 2.0.0 Ok: queued as EE8919283E0

Last edited by pchelp2u; 15th August 2011 at 13:30.
Reply With Quote
  #13  
Old 16th August 2011, 13:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Can you post your main.cf and your master.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 16th August 2011, 14:32
pchelp2u pchelp2u is offline
Junior Member
 
Join Date: Aug 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I will use quote boxes, so that you don't have to scroll as much.
As a reminder - I can successfully SEND anywhere.
main.cf (comments removed)
Quote:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix

mail_owner = postfix

myorigin = $mydomain

inet_interfaces = all
mydestination = mail.kateslab.com
unknown_local_recipient_reject_code = 550

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop
html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.3.3/samples

readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
myhostname = mail.kateslab.com
#mynetworks = 127.0.0.0/8 [::1]/128
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /var/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
maildrop_destination_concurrency_limit = 1
maildrop_destination_recipient_limit = 1
virtual_transport = dovecot
header_checks = regexp:/etc/postfix/header_checks
mime_header_checks = regexp:/etc/postfix/mime_header_checks
nested_header_checks = regexp:/etc/postfix/nested_header_checks
body_checks = regexp:/etc/postfix/body_checks
dovecot_destination_recipient_limit = 1
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
receive_override_options = no_address_mappings
content_filter = amavis:[127.0.0.1]:10024
# relayhost =
mailbox_size_limit = 0
message_size_limit = 0
main.cf (I have not removed the comments, as they seem to help make it easier to read)
Quote:
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - - - - smtpd -v
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} ${extension} ${recipient} ${user} ${nexthop} ${sender}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${user}@${nexthop}
amavis unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes

127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,rej ect
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
-o smtpd_bind_address=127.0.0.1
Thank you again for looking at this.
Reply With Quote
  #15  
Old 17th August 2011, 10:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Looks ok.

Your mail server is in a local network, behind a router, right? Do you have another mail server in your LAN? Is it possible that your router forwards port 25 to that other mail server instead of this one? Because I find it strange that telnet shows something different when you connet from the outside...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #16  
Old 17th August 2011, 13:15
pchelp2u pchelp2u is offline
Junior Member
 
Join Date: Aug 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Lightbulb Progress

Yes, this is behind a router. Since this is my "lab" I actually only have 2 boxes behind it, an ISP Config machine (the one that's giving me mail problems) and an Ubuntu desktop, nothing else. The router/firewall I'm using is Untangle. For testing, I turned off the firewall portion and am only using the port forwards. I was still having problems, but
! - more troubleshooting, but progress!
I went into Untangle and turned off EVERYTHING except port-forwarding and I can now receive mail. I will continue to test until I can determine which module is causing the problems.
Reply With Quote
  #17  
Old 17th August 2011, 13:33
pchelp2u pchelp2u is offline
Junior Member
 
Join Date: Aug 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
Thumbs up Thank you! Progress leads to more questions...

Your questions have pointed me to the root of my problem.
The problem is the SPAM filter built into the Untanlge firewall. It is dropping all external email - I must now contact their forum, because I have another one that is running that does not do this.
However, now that I am receiving mail, I am getting this information in the logs:
Quote:
Aug 17 11:08:52 isp postfix/smtpd[27298]: match_hostaddr: 69.17.24.150 ~? 127.0.0.0/8
Aug 17 11:08:52 isp postfix/smtpd[27298]: match_hostname: unknown ~? 172.18.7.0/24
Aug 17 11:08:52 isp postfix/smtpd[27298]: match_hostaddr: 69.17.24.150 ~? 172.18.7.0/24
Aug 17 11:08:52 isp postfix/smtpd[27298]: match_list_match: unknown: no match
Aug 17 11:08:52 isp postfix/smtpd[27298]: match_list_match: 69.17.24.150: no match
Aug 17 11:08:52 isp postfix/smtpd[27298]: send attr request = disconnect
Aug 17 11:08:52 isp postfix/smtpd[27298]: send attr ident = smtp:69.17.24.150
Aug 17 11:08:52 isp postfix/smtpd[27298]: private/anvil: wanted attribute: status
Aug 17 11:08:52 isp postfix/smtpd[27298]: input attribute name: status
Aug 17 11:08:52 isp postfix/smtpd[27298]: input attribute value: 0
Aug 17 11:08:52 isp postfix/smtpd[27298]: private/anvil: wanted attribute: (list terminator)
Aug 17 11:08:52 isp postfix/smtpd[27298]: input attribute name: (end)
Aug 17 11:08:52 isp postfix/smtpd[27298]: disconnect from unknown[69.17.24.150]
Aug 17 11:08:52 isp postfix/smtpd[27298]: master_notify: status 1
Aug 17 11:08:52 isp postfix/smtpd[27298]: connection closed
Aug 17 06:08:52 isp amavis[1628]: (01628-08) (!!)WARN: all primary virus scanners failed, considering backups
Aug 17 06:09:09 isp postfix/smtpd[27345]: connect from unknown[127.0.0.1]
Aug 17 11:09:09 isp postfix/smtpd[27345]: A40979283E7: client=unknown[127.0.0.1]
Aug 17 06:09:09 isp postfix/cleanup[27310]: A40979283E7: message-id=<F59FDB93ED36D941AC8146322BB55B9A04262CFC68A9@D C2.PChelp2U.com>
Aug 17 06:09:09 isp postfix/qmgr[12557]: A40979283E7: from=<cjurkowski@pchelp2u.com>, size=3988, nrcpt=1 (queue active)
Aug 17 11:09:09 isp postfix/smtpd[27345]: disconnect from unknown[127.0.0.1]
Aug 17 06:09:09 isp amavis[1628]: (01628-08) Passed CLEAN, [69.17.24.150] [69.17.24.150] <cjurkowski@pchelp2u.com> -> <katiij@kateslab.com>, Message-ID: <F59FDB93ED36D941AC8146322BB55B9A04262CFC68A9@DC2. PChelp2U.com>, mail_id: n5DcdS5M2zfU, Hits: 0.09, size: 3552, queued_as: A40979283E7, 17704 ms
Aug 17 06:09:09 isp postfix/smtp[27311]: D7E949283E0: to=<katiij@kateslab.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=18, delays=0.28/0.05/0.07/18, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01628-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A40979283E7)
Aug 17 06:09:09 isp postfix/qmgr[12557]: D7E949283E0: removed
Aug 17 06:09:10 isp postfix/pipe[27347]: A40979283E7: to=<katiij@kateslab.com>, relay=dovecot, delay=0.54, delays=0.13/0.1/0/0.31, dsn=2.0.0, status=sent (delivered via dovecot service)
Aug 17 06:09:10 isp postfix/qmgr[12557]: A40979283E7: removed
Reply With Quote
  #18  
Old 18th August 2011, 11:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,716 Times in 2,558 Posts
Default

Do you have ClamAV installed? If so, please check the ClamAV section in your amavisd.conf. Maybe it uses a wrong socket location or something like that. Also make sure that Clamd is running.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
pchelp2u (19th August 2011)
  #19  
Old 19th August 2011, 15:31
pchelp2u pchelp2u is offline
Junior Member
 
Join Date: Aug 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
 
Talking Solved! Thanks!

My initial problem was caused by an older version of Untangle Firewall. Since the one I have been running was quite old, I just rebuilt it with the newest one. (Love VM's!) The newest version (9.1?) has default settings for the spam filter which do not interfere at all with email hosting.

My secondary problem was the socket, as you mentioned. ClamAV was not configured AT ALL in amavisd.conf. Don't know why, perhaps when I updated not all settings were updated as well.

Thank you again for your fresh eyes and simple suggestions. They made finding my problem far more simple than it could have been.
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
Catchall and Forwarding not working simmo General 6 22nd March 2014 00:54
sneaking suspicion my postfix config has gone awry mjbarfoot Installation/Configuration 7 24th August 2010 12:23
Cannot send or receive mail farbrorc Installation/Configuration 6 24th January 2010 11:56
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
Postfix problem and few questions Gimly Installation/Configuration 12 7th July 2009 16:27


All times are GMT +2. The time now is 10:29.


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