Send & Receive mail

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

hardip

Send & Receive mail

Postby hardip » Mon Mar 06, 2006 3:17 pm

Being a newbie, I managed to install Scalix Community on RHE3 successfully, but I cannot send or receive any mail. What am I doing wrong ??
I cannot trace the sendmail.cg file in the /etc directory.

dannyt
Scalix
Scalix
Posts: 140
Joined: Mon Aug 08, 2005 11:52 am
Location: UK

Postby dannyt » Fri Mar 10, 2006 2:18 pm

Hi,

Have a look at the installation log (/var/opt/scalix/sys/install/log) to see if anything has failed. It is not clear from you comment whether you are having trouble with external (internet) mail, or locally delivered mail (e.g. between two local Scalix users). My guess is the former which may be related to: internet gateway, smtpd relay, sendmail, etc.

Regards,
Danny

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Sun Mar 12, 2006 11:07 am

If you say, you can't send or receive any mail - can you do so internally? I.e. create two scalix users, send mail from one to the other using either outlook or SWA. If that works, your server is up and running fine. If we're referring to internet mail, we need to do further steps in the troubleshooting.

-- f.
Florian von Kurnatowski, Die Harder!

hardip

Outgoing Mail

Postby hardip » Mon Mar 13, 2006 1:51 am

Thanks, I am able to send and recieve maile between users on our LAN, however I am unable to send mail to any other address apart from our domain. The error I get is that the domain of user user@localdomain.com does not exist.

Any ideas ??

florian
Scalix
Scalix
Posts: 3852
Joined: Fri Dec 24, 2004 8:16 am
Location: Frankfurt, Germany
Contact:

Postby florian » Mon Mar 13, 2006 2:24 am

I assume localdomain.com is your own domain?

Well, what happens is that sendmail (which is used for outgoing internet traffic) tries to check your sender address agaiinst your DNS. In case your DNS is not configured correctly, this will not work.

Try executing

Code: Select all

dig localcomain.com MX


on your scalix server. This should return the MX record or responsible server for your domain. If this does not return anything useful, the problem must first be resolved in your DNS.

Please also search the forum for your specific issue; I believe there are a number of articles already on here discussing the problem. DNS misconfigurations are a common source of error in any mailserver/Scalix environment.

-- F.
Florian von Kurnatowski, Die Harder!

e1kosau
Posts: 30
Joined: Fri Mar 03, 2006 3:52 am
Location: california SF

Postby e1kosau » Tue Mar 14, 2006 1:38 pm

hi,

im running scalix 10.0on Red Hat ES 4 and im getting "Deferred: connection timed out errors" in my logs...i added some blacklists in my sendmail.mc file and then after that all the emails in my local domain got messed up.

below are the logs:



Code: Select all

Mar 14 09:33:24 webmail sendmail[12334]: k2EBIhTU011181: to=<bbarnickel@apgloan.com>, delay=06:14:41, xdelay=00:00:00, mailer=esmtp, pri=759271, relay=apgloan.com., dsn=4.0.0, stat=Deferred: Connection timed out with apgloan.com.
Mar 14 09:33:28 webmail sendmail[12334]: k2E9upOs011102: to=<user1@apgloan.com>, delay=07:36:37, xdelay=00:00:00, mailer=esmtp, pri=845415, relay=apgloan.com., dsn=4.0.0, stat=Deferred: Connection timed out with apgloan.com.
Mar 14 09:33:28 webmail sendmail[12334]: k2E8m10F011040: to=<user2@apgloan.com>, delay=08:45:27, xdelay=00:00:00, mailer=esmtp, pri=935471, relay=apgloan.com., dsn=4.0.0, stat=Deferred: Connection timed out with apgloan.com.
Mar 14 09:33:33 webmail sendmail[12334]: k2E95TDW011060: to=<user3@apgloan.com>, delay=08:28:04, xdelay=00:00:00, mailer=esmtp, pri=935529, relay=apgloan.com., dsn=4.0.0, stat=Deferred: Connection timed out with apgloan.com.


and in my mail queue i can see 56 messages that are also deferred which also corresponds to the error that im getting in my maillogs.

please help thanks.

dmode
Posts: 16
Joined: Tue Mar 14, 2006 11:51 am

Postby dmode » Thu Mar 16, 2006 3:46 pm

[quote="florian"]I assume localdomain.com is your own domain?

Well, what happens is that sendmail (which is used for outgoing internet traffic) tries to check your sender address agaiinst your DNS. In case your DNS is not configured correctly, this will not work.

Try executing

Code: Select all

dig localcomain.com MX


I wanted to reply to this thread and state that my DNS is set up properly, but I am receiving an error when trying to send to an INTERNET address. abcd@yahoo.com, etc. It works fine on the LAN e-mails with SCALIX.

It states, "Unable to send mail to: abcd@yahoo.com"

I ran the command you mentioned above that states 'dig mylocaldomain.com MX' and it replied with information.

Right above the header of that command it states NO ERROR.

I know sendmail daemon is running, and all services from omstat -a. Just not reaching outside to the internet, and haven't had an opportunity to check incoming either.

Thanks in advance to your responses.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Mar 16, 2006 8:01 pm

Hi dmode,

It sounds like you have your /var/opt/scalix/sys/smtpd.cfg file misconfigured. It's like the SMTP Relay is preventing you from relaying mail because it's not recognizing your Scalix server as an allowed relay host. Please post your smtpd.cfg file here and we'll take a look.

Thanks,
Rachel

dmode
Posts: 16
Joined: Tue Mar 14, 2006 11:51 am

Postby dmode » Fri Mar 17, 2006 1:11 am

ScalixSupport wrote:Hi dmode,

It sounds like you have your /var/opt/scalix/sys/smtpd.cfg file misconfigured. It's like the SMTP Relay is preventing you from relaying mail because it's not recognizing your Scalix server as an allowed relay host. Please post your smtpd.cfg file here and we'll take a look.

Thanks,
Rachel


Thanks for your quick response. Here is my smtpd.cfg

I just did a fresh install of SCALIX

###############################################################################
# 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
# DEFAULT_SMTP Either the name of a program (which must begin with
# a "/") or a hostname and optional port number. The
# default value is "/usr/sbin/sendmail -bs". Note that if
# mail is being re-directed to another machine, then that
# machine should be able to deal correctly with addresses that
# are nominally local to the originating machine.
# 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 domain on the connection
# greeting line.
# LISTEN_PORT Alternative port to listen to, default is "smtp" port
# LISTEN Comma separated host:port to listen to eg.
# LISTEN=mail.example.com:25,10.100.100.1:submission
#
###############################################################################


EXTENSIONS=AUTH,DSN,8BITMIME


###############################################################################
# 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
#
###############################################################################

RELAY accept 127.0.0.1
RELAY accept .mmux1
RELAY Log_Reject ALL

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

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Mar 17, 2006 2:15 am

Hi dmode,

There's the problem, your RELAY accept line is incorrect. Change the line:

RELAY accept .mmux1

to be

RELAY accept .yourdomain.com

where yourdomain.com is your Scalix hosts domain name. For example, if your server FQDN is mail.acme.com, then the line would be:

RELAY accept .acme.com

Now, stop and restart the SMTP Relay by typing:

omoff -d0 smtpd
omon smtpd

That should do it.

Thanks,
Rachel

dmode
Posts: 16
Joined: Tue Mar 14, 2006 11:51 am

Postby dmode » Fri Mar 17, 2006 3:03 am

ScalixSupport wrote:Hi dmode,

There's the problem, your RELAY accept line is incorrect. Change the line:

RELAY accept .mmux1

to be

RELAY accept .yourdomain.com

where yourdomain.com is your Scalix hosts domain name. For example, if your server FQDN is mail.acme.com, then the line would be:

RELAY accept .acme.com

Now, stop and restart the SMTP Relay by typing:

omoff -d0 smtpd
omon smtpd

That should do it.

Thanks,
Rachel


!Yahoo! Thanks a lot!

Its always something simple. I spent a lot of time going through the manual and got dazed and confused. It works inside to the internet, and outside from the internet to the inside. Tested multiple times from different addresses before posting this msg.

Thanks Rachel!

e1kosau
Posts: 30
Joined: Fri Mar 03, 2006 3:52 am
Location: california SF

Postby e1kosau » Fri Mar 17, 2006 5:45 pm

im running scalix 10, RH AS 4 and im getting DSN user unknown error when sending email to my domain. sendmail error says that the user is unknown

Code: Select all

Mar 17 13:40:13 webmail sendmail[12553]: k2HLeCHY012553: from=<e1kosau@gmail.com>, size=6069, class=0, nrcpts=1, msgid=<52b7d8480603171340k3700ce8do1f6acfd179137dc4@mail.gmail.com>, proto=ESMTP, relay=root@localhost
Mar 17 13:40:13 webmail sendmail[12554]: k2HLeDpw012554: <user1@domain.com>... User unknown
Mar 17 13:40:13 webmail sendmail[12553]: k2HLeCHY012553: to=<user1@domain.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=36069, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown
Mar 17 13:40:13 webmail sendmail[12554]: k2HLeDpw012554: from=<e1kosau@gmail.com>, size=6069, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Mar 17 13:40:13 webmail sendmail[12553]: k2HLeCHY012553: k2HLeCHZ012553: DSN: User unknown
Mar 17 13:40:13 webmail sendmail[12554]: k2HLeDq0012554: from=<>, size=8113, class=0, nrcpts=1, msgid=<200603172140.k2HLeCHZ012553@webmail.domain.com>, proto=ESMTP, daemon=MTA, relay=localhost.localdomain [127.0.0.1]




I made some changes to the sendmail.mc added some RBLs and then the problem started as soon as I restarted the sendmail.

Please help

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Mar 17, 2006 5:46 pm

If you modify the .mc and rebuild sendmail.cf you have to run

omsendin

to get the scalix rules in sendmail.cf.

Regards,
Don

e1kosau
Posts: 30
Joined: Fri Mar 03, 2006 3:52 am
Location: california SF

Postby e1kosau » Fri Mar 17, 2006 5:51 pm

hey thanks that solved my problem...whew! i thought i made some mistakes when changing the sendmail.mc file..

kudos to you all at SCALIX!!!!

e1kosau
Posts: 30
Joined: Fri Mar 03, 2006 3:52 am
Location: california SF

Postby e1kosau » Sat Mar 18, 2006 2:02 am

i want to use smtp authentication. i configured my smtpd.cfg which can be seen below however i can see that there are still some mails are being accepted for relay. any tips on how to use smtp auth first before sending out emails. how can i prevent spammers in using my email server as a relay. as you can see there is one email which is not part of my domain being sent out by sendmail.. any help will be appreciated..

thanks.

Code: Select all

RELAY accept .domain2.com
RELAY Log_Reject ALL
RELAY accept .domain.com
SUBMIT Log_Reject mail.domain2.com
RELAY reject localhost.localdomain
RELAY reject localhost
RELAY reject 127.0.0.1
RELAY accept hostname.domain.com

#ANONYMOUS reject 192.168.1.222
AUTH_MISMATCH REJECT LOCAL
AUTH_SUCCESS accept ALL

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


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 14 guests