Smtpd Issue

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

rickymarino
Posts: 17
Joined: Mon Feb 19, 2007 11:11 am
Location: Argentina, Buenos Aires
Contact:

Smtpd Issue

Postby rickymarino » Wed Apr 18, 2007 2:12 pm

Hi!
I've installed Scalix 11.0.2. It works pretty good, I do only have one issue.
Im using thunderbird to check my emails (Imap). Sometimes when I try to send an email Im not able to. If I restart SMTPD RELAY the mail will go through. It will also go through if I wait some minutes and try again.

This is my smtpd.cfg file:

##############################################################################
# SMTP Relay Configuration
# ########################
#
# For details please see Scalix Overview - Security
#
###############################################################################

###############################################################################
# Relay Configuration
# ###################
#
# EXTENSIONS These extensions will be advertised by the EHLO reply
# DOMAIN_NAME Local host FQDN
# LOCAL_NAMES Local aliases of DOMAIN_NAME
# MAX_HOP_COUNT If the number of Received: header lines in a message sent to
# the relay exceed this number then the message will be
# rejected by the relay. The default value is zero and any
# non-positive value is interpreted as infinity. The default
# value means that no loop detection is done by the relay,
# any loop detection will only be done by sendmail.
# GREETING This is the text after the 220 on the connection
# greeting line some tokens can be used:
# %F - FQDN, %P - protocol, %N program name,
# %V - version, %D date
# LISTEN Comma separated host:port to listen to eg.
# LISTEN=mail.example.com:25,10.100.100.1:smtp
#
###############################################################################


EXTENSIONS=AUTH,DSN,8BITMIME

# Uncomment the following lines to enable the Submission and LMTP listeners
#SUBMIT=ON
#LMTP=ON

###############################################################################
# Catch-all recipients
# ####################
#
# Catch-all recipients are for catching email sent to unknown users, instead
# of non-delivering the email. More than one CATCH line can be used.
#
# CATCH PATTERN RECIPIENT
#
# PATTERN can be:
# user* - any unknown address starting with user
# @domain.com - any unknown address in domain.com
# user*@domain.com - any unknown user starting with user in domain.com
# RECIPIENT
# this is the recipient email address to redirect the email to. It can
# be local or remote, but is subject to any relay rules if remote.
#
# Authentication and Anti-Spamming Measures
# #########################################
#
# Each line is of the form:
# EVENT ACTION PATTERN PATTERN...
# When an event happens the SMTP Relay checks for a matching event/pattern
# sequentially in this file. When it finds the first match, it takes the
# action specified.
#
# ######
# EVENTS
# ######
#
# AUTH_SUCCESS An attempt is made to submit a
# successfully authenticated message.
#
# AUTH_MISMATCH An attempt is made to submit a
# successfully authenticated message but
# the originator name does not match
# the authenticated name.
#
# ANONYMOUS An attempt is made to submit a message
# sent without authentication or after
# failed authentication.
#
# SUBMIT An attempt is made to submit a message from
# the host specified in pattern
#
# RELAY An attempt is made to relay a message through the SMTP Relay
#
# ORIGINATOR An attempt is made to submit a message from a user whose
# email address matches pattern
#
# RECIPIENT An attempt is made to submit a message to a user whose
# email address matches pattern
#
# #######
# ACTIONS
# #######
#
# Accept The message is unconditionally accepted and processed
# normally.
#
# Defer The message is deferred with a 400 code
#
# Discard The message is accepted but then discarded
#
# Header The message is accepted, but an extra header is inserted.
#
# Reject The message is rejected with a 500 code
#
# If Log_ added to the start of an action, then the action is also recorded
# in the SMTP Relay log file.
#
# ########
# PATTERNS
# ########
#
# Hostname Patterns
# - an IP address, eg 123.234.132.231
# - an IP subnet and mask, eg 123.234.200.0/255.255.240.0
# - a hostname, eg bert.loc.co.uk
# - the end of a domain, eg .spammer.net
# - the start of a domain, 123.234.
# - the keyword ALL matches all hosts
# - the keyword LOCAL matches all hosts that do not contain a .
#
# Email Patterns - used by ORIGINATOR and RECIPIENT
# - *@*.spam.net
#
# DNSBL Patterns - These can be used by the SUBMIT EVENT to use DNS black
# list systems (See http://en.wikipedia.org/wiki/DNSBL )
# - DNSBL,host,reply eg DNSBL,bl.spamcop.net,ALL
#
###############################################################################

# NB Authenticated RELAYs are always allowed

SMTPFILTER=TRUE
RELAY accept 127.0.0.1
RELAY accept mailserver.domain.com
RELAY accept domain.com
RELAY accept mailserver
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*

# The following group sets the configuration for the submission listener
# This listener is only active if SUBMIT=ON is above
# By default it binds to port 587
[SUBMIT]
#LISTEN=localhost:587
# Reject all anonymous connections
ANONYMOUS Log_Reject ALL



# The following group sets the configuration for the lmtp listener
# This listener is only active if LMTP=ON is above
[LMTP]
LISTEN=localhost:24
# Use the following line to listen on a unix domain socket
#LISTEN=~/tmp/lmtp.unix

swordfish
Posts: 110
Joined: Mon Feb 05, 2007 6:27 pm

Postby swordfish » Thu Apr 19, 2007 1:18 pm

I don't think your problem is related to the smtpd configuration. I use IMAP and so far I haven't noticed such problems. Fair enough, I don't use Thunderbird but if you have intermitent problems, rather turn auditing on and get some hints about the issue from there.

rickymarino
Posts: 17
Joined: Mon Feb 19, 2007 11:11 am
Location: Argentina, Buenos Aires
Contact:

Postby rickymarino » Mon Apr 23, 2007 10:20 am

I've turned auditing on but I don't see any error when I can't conect to the SMTPD. I just wait some minutes and then I am able to send the Email or if I restart the SMTPD relay service I can send the email as well.

rickymarino
Posts: 17
Joined: Mon Feb 19, 2007 11:11 am
Location: Argentina, Buenos Aires
Contact:

Postby rickymarino » Mon Apr 23, 2007 11:30 am

I've just noticed that SMTPD Stops responding at this point:

Accepted client 3 from (mx04.ofm.com)
Cli 29162/3 sent : 220 mailserver.domain.com ESMTP Scalix SMTP Relay 11.0.2.17; Mon, 23 Apr 2007 11:31:18 -0300 (ART)

Cli 29162/3 rcvd: 'EHLO mx04.ofm.com'
Cli 29162/3 sent : 250-mailserver.domain.com Hello mx04.ofm.com [206.248.195.45], pleased to meet you
250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 GSSAPI
250-AUTH=LOGIN
250-DSN
250 8BITMIME

Cli 29162/3 rcvd: 'MAIL FROM:<MAILER-DAEMON@anguilla.tigerfuel.com>'
Cli 29162/3 sent : 250 MAILER-DAEMON@anguilla.tigerfuel.com... Sender ok

Stucks right here and after some minutes I see this:

Cli 29162/3 rcvd: 'RCPT TO:<mail-daemon@mailserver.domain.com>'
Accepted client 5 from (customer123-158-217.iplannetworks.net)
Accepted client 6 from ()
Cli 29162/3 sent : 550 5.1.1 mail-daemon@mailserver.trascopier.com.ar... User unknown

Cli 29162/8 failed: Internal error

rickymarino
Posts: 17
Joined: Mon Feb 19, 2007 11:11 am
Location: Argentina, Buenos Aires
Contact:

Postby rickymarino » Mon Apr 23, 2007 1:43 pm

This only happens when I get a connection from:

Cli 29162/3 rcvd: 'MAIL FROM:<MAILER-DAEMON@anguilla.tigerfuel.com>'
Cli 29162/3 sent : 250 MAILER-DAEMON@anguilla.tigerfuel.com... Sender ok

how can I block connections from that host??

deyjvu
Posts: 175
Joined: Tue Oct 25, 2005 6:48 am
Location: Australia

Add an entry for ORIGINATOR and reject or discard it

Postby deyjvu » Fri Apr 27, 2007 2:39 am

In the smtpd.cfg file add a line with something like

ORIGINATOR *@anguilla.tigerfuel.com reject

That is if you want to reject all mail that ever comes from that address.

The instructions are in the file itself, it shows you the EVENT types you can have and then the ACTIONS you can take so EVENT is ORIGINATOR then the address you want to act on lastly the ACTION reject but this could be Discard or any of the other actions.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 0 guests

cron