LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-13-2009, 10:30 AM   #1
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Rep: Reputation: 0
Sendmail smarthost config help


I am running Openemm on an ubuntu server with sendmail. I have tried to configure the smarthost option of sendmail, as I want to relay emails through our exchange server.

But I am getting errors in my MAILLOG, when sending a email campaign from openemm. Please see below.

Any help would be much appreciated, I can post the config of my sendmail.mc if needs be.

Quote:
Mar 13 10:59:13 SERVERNAME sendmail[7101]: starting daemon (8.14.2): SMTP+queueing@00:05:00
Mar 13 10:59:13 SERVERNAME sendmail[7104]: starting daemon (8.14.2): queueing@00:05:00
Mar 13 10:59:13 SERVERNAME sendmail[7105]: n2DAj1fe006727: bogus queue file, uid=114, gid=126, mode=100660
Mar 13 10:59:13 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:13 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:14 SERVERNAME sendmail[7105]: n2DAj1fe006727: Losing ./qfn2DAj1fe006727: bogus file uid/gid in mqueue
Mar 13 10:59:14 SERVERNAME sendmail[7105]: n2D9j1bG006432: bogus queue file, uid=114, gid=126, mode=100660
Mar 13 10:59:14 SERVERNAME sendmail[7105]: n2D9j1bG006432: Losing ./qfn2D9j1bG006432: bogus file uid/gid in mqueue
Mar 13 10:59:14 SERVERNAME sendmail[7104]: unable to write pid to /home/openemm/var/run/sendmail-mqueue-client.pid: Permission denied
Mar 13 10:59:14 SERVERNAME sendmail[7107]: starting daemon (8.14.2): queueing@00:01:00
Mar 13 10:59:14 SERVERNAME sendmail[7107]: unable to write pid to /home/openemm/var/run/sendmail-openemm-admin.pid: Permission denied
Mar 13 10:59:14 SERVERNAME sendmail[7110]: starting daemon (8.14.2): queueing@00:01:00
Mar 13 10:59:14 SERVERNAME sendmail[7110]: unable to write pid to /home/openemm/var/run/sendmail-openemm-queue.pid: Permission denied
Mar 13 10:59:18 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:18 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:23 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:23 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:27 SERVERNAME sm-mta[7222]: starting daemon (8.14.2): SMTP+queueing@00:10:00
Mar 13 10:59:28 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:28 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:33 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:33 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:38 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:38 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:43 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:43 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:48 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:48 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:53 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:53 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 10:59:58 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 10:59:58 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 11:00:03 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 13 11:00:03 SERVERNAME sendmail[7101]: daemon MTA: problem creating SMTP socket
Mar 13 11:00:03 SERVERNAME sendmail[7101]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
Mar 13 11:29:14 SERVERNAME sendmail[7406]: 00001000000000003: to=<USER@example.co.uk>, delay=00:00:33, xdelay=00:00:01, mailer=relay,
pri=0, relay='example.example.local', dsn=5.1.2, stat=Host unknown (Name server: 'example.example.local': host not found)

Last edited by Craigt; 03-13-2009 at 11:45 AM.
 
Old 03-15-2009, 10:11 AM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 241

Rep: Reputation: 51
Hi,

it looks like on your linux box is already running an smtp server.
I think it is a postfix mail server.

So shut it down with

Code:
/etc/init.d/postfix stop 
/etc/init.d/sendmail restart
then


Code:
chkconfig postfix off
chkconfig sendmail on
or start the service configuration and disable the postfix service and enable the sendmail.

You can check the mail server type with telnet.

Code:
telnet localhost 25
It will tell you what MTA this is. (postfix,sendmail,exim) evidently if it is not a postfix you will have to disable the proper one.

I hope it helped.
If not let me know, I'll help you.

I made few sendmail-linux gateway spamfilter for windows and linux boxes.

Laz
 
Old 03-17-2009, 06:42 AM   #3
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Postfix is not running on the server.

I issued the command any way to double check

Code:
/etc/init.d/postfix stop
I received this when I issued the command

Quote:
bash: /etc/init.d/postfix: No such file or directory
I have broke down the log messages when they actually happen.

When the server starts:

Quote:
Mar 17 11:05:26 SERVERNAME sm-mta[5439]: starting daemon (8.14.2): SMTP+queueing@00:10:00
When I start Openemm

Quote:
Mar 17 11:13:17 SERVERNAMEsendmail[6491]: starting daemon (8.14.2): SMTP+queueing@00:05:00
Mar 17 11:13:17 SERVERNAME sendmail[6494]: starting daemon (8.14.2): queueing@00:05:00
Mar 17 11:13:17 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:17 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:17 SERVERNAME sendmail[6497]: starting daemon (8.14.2): queueing@00:01:00
Mar 17 11:13:17 SERVERNAME sendmail[6500]: starting daemon (8.14.2): queueing@00:01:00
Mar 17 11:13:22 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:22 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:27 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:27 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:32 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:32 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:37 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:37 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:42 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:42 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:47 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:47 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:52 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:52 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:13:57 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:13:57 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:14:02 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:14:02 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:14:07 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: cannot bind: Address already in use
Mar 17 11:14:07 SERVERNAME sendmail[6491]: daemon MTA: problem creating SMTP socket
Mar 17 11:14:07 SERVERNAME sendmail[6491]: NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting
When I send an email campaign with openemm

Quote:
Mar 17 11:29:18 SERVERNAME sendmail[6800]: 00001100000000003: to=<EXAMPLE@EXAMPLE.co.uk>, delay=00:00:30, xdelay=00:00:01, mailer=relay,
pri=0, relay='EXAMPLE.EXAMPLE.local', dsn=5.1.2, stat=Host unknown (Name server: 'EXAMPLE.EXAMPLE.local': host not found)
Mar 17 11:45:01 SEVERNAME sendmail[6954]: n2HBj1UK006954: from=EXAMPLE, size=318, class=0, nrcpts=1, msgid=<200903171145.n2HBj1UK006954@EXAMPLE.EXAMPLE.local>,
relay=EXAMPLE@localhost
Mar 17 11:45:01 SERVERNAME sendmail[6954]: n2HBj1UK006954: to=EXAMPLE, ctladdr=EXAMPLE (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30318,
relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Mar 17 11:48:17 SERVERNAME sendmail[6962]: n2HBj1UK006954: bogus queue file, uid=1000, gid=126, mode=100660
Mar 17 11:48:17 SERVERNAME sendmail[6962]: n2HBj1UK006954: Losing ./qfn2HBj1UK006954: bogus file uid/gid in mqueue
Mar 17 11:56:18 SERVERNAME sm-mta[6978]: n2HBoYaC006978: timeout waiting for input from localhost during server cmd read
Mar 17 11:56:18 SERVERNAME sm-mta[6978]: n2HBoYaC006978: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA

Last edited by Craigt; 03-17-2009 at 07:03 AM.
 
Old 03-17-2009, 07:18 AM   #4
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
do chkconfig sendmail off

When you are using Sendmail with Openemm, you do not have to start (or stop) it, since this is already done by the start script of OpenEMM.
When you boot your server, Sendmail is automatically starting at boot time, so when you now start openemm, the mta (sendmail) will already be running, giving rise to that error.

You also need to configure your sendmail (/etc/mail/sendamail.cm)
define(`SMART_HOST', `smtp.your.provider')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl


but check that this may be done within Openemm

Open file /etc/mail/sendmail.mc and change the line
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
to
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Add the following line at the end of the file:
INPUT_MAIL_FILTER(`bav', `S=unix:/home/openemm/var/run/bav.sock, F=T')dnl

Start openemm with its start script and lets see.
If you still have problems let me see contents of your /etc/mail directory.

Last edited by chitambira; 03-17-2009 at 07:23 AM.
 
Old 03-18-2009, 09:05 AM   #5
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
I stopped sendmail like you said and then started openemm. I recieved no error messages.

But after sending a test email campaign I received this error message in my log file again.

Quote:
Mar 18 11:00:32 SERVERNAME sendmail[8566]: 00001200000000003: to=<EXAMPLE@EXAMPLE.co.uk>, delay=00:00:37, xdelay=00:00:00, mailer=relay, pri=0, relay='EXAMPLE.EXAMPLE.local', dsn=5.1.2, stat=Host unknown (Name server: 'EXAMPLE.EXAMPLE.local': host not found)
I am also receiving these messages in my maillog

Quote:
Mar 18 11:45:01 SERVERNAME sendmail[8734]: n2IBj1Pb008734: from=EXAMPLE, size=318, class=0, nrcpts=1, msgid=<200903181145.n2IBj1Pb008734@SERVERNAME.EXAMPLE.local>, relay=EXAMPLE@localhost
Mar 18 11:45:01 SERVERNAME sendmail[8734]: n2IBj1Pb008734: to=EXAMPLE, ctladdr=EXAMPLE (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30318, relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Mar 18 11:47:32 SERVERNAME sendmail[8740]: n2IBj1Pb008734: bogus queue file, uid=1000, gid=126, mode=100660
Mar 18 11:47:32 SERVERNAME sendmail[8740]: n2IBj1Pb008734: Losing ./qfn2IBj1Pb008734: bogus file uid/gid in mqueue
Mar 18 12:45:01 SERVERNAME sendmail[8953]: n2ICj1do008953: from=EXAMPLE, size=318, class=0, nrcpts=1, msgid=<200903181245.n2ICj1do008953@SERVERNAME.EXAMPLE.local>, relay=EXAMPLE@localhost
Mar 18 12:45:01 SERVERNAME sendmail[8953]: n2ICj1do008953: to=EXAMPLE, ctladdr=EXAMPLE (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30318, relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Mar 18 12:47:32 SERVERNAME sendmail[8960]: n2ICj1do008953: bogus queue file, uid=1000, gid=126, mode=100660
Mar 18 12:47:32 SERVERNAME sendmail[8960]: n2ICj1do008953: Losing ./qfn2ICj1do008953: bogus file uid/gid in mqueue
Mar 18 13:45:01 SERVERNAME sendmail[9174]: n2IDj1dm009174: from=EXAMPLE, size=318, class=0, nrcpts=1, msgid=<200903181345.n2IDj1dm009174@SERVERNAME.EXAMPLE.local>, relay=EXAMPLE@localhost
Mar 18 13:45:01 SERVERNAME sendmail[9174]: n2IDj1dm009174: to=EXAMPLE, ctladdr=EXAMPLE (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30318, relay=[127.0.0.1] [127.0.0.1],
dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Mar 18 13:47:32 SERVERNAME sendmail[9180]: n2IDj1dm009174: bogus queue file, uid=1000, gid=126, mode=100660
Mar 18 13:47:32 SERVERNAME sendmail[9180]: n2IDj1dm009174: Losing ./qfn2IDj1dm009174: bogus file uid/gid in mqueue
 
Old 03-18-2009, 09:11 AM   #6
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Heres a copy of my sendmail.mc file. Please let me know if you need anything else

Quote:
divert(-1)dnl
#-----------------------------------------------------------------------------
# $Sendmail: debproto.mc,v 8.14.2 2008-01-24 14:29:57 cowboy Exp $
#
# Copyright (c) 1998-2007 Richard Nelson. All Rights Reserved.
#
# cf/debian/sendmail.mc. Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.14.2
#
# Note: the .in file supports 8.7.6 - 9.0.0, but the generated
# file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the following:
# * make (or make -C /etc/mail)
# * sendmailconfig
# * m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
# The first two options are preferred as they will also update other files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#-----------------------------------------------------------------------------
divert(0)dnl
#
# Copyright (c) 1998-2005 Richard Nelson. All Rights Reserved.
#
# This file is used to configure Sendmail for use with Debian systems.
#
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.14.2-2build1 2008-01-24 14:29:57 cowboy Exp $')
OSTYPE(`debian')dnl
DOMAIN(`debian-mta')dnl
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
undefine(`confHOST_STATUS_DIRECTORY')dnl #DAEMON_HOSTSTATS=
dnl # Items controlled by /etc/mail/sendmail.conf - DO NOT TOUCH HERE
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl # into this directory before writing files.
dnl # If *all* your user accounts are under /home then use that
dnl # instead - it will prevent any writes outside of /home !
dnl # define(`confSAFE_FILE_ENV', `')dnl
dnl #
dnl # Daemon options - restrict to servicing LOCALHOST ONLY !!!
dnl # Remove `, Addr=' clauses to receive from any interface
dnl # If you want to support IPv6, switch the commented/uncommentd lines
dnl #
FEATURE(`no_default_msa')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, Addr=127.0.0.1')dnl
dnl #
dnl # Be somewhat anal in what we allow
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl #
dnl # Features
dnl #
dnl # use /etc/mail/local-host-names
FEATURE(`use_cw_file')dnl
dnl #
dnl # The access db is the basis for most of sendmail's checking
FEATURE(`access_db', , `skip')dnl
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
define(`confBAD_RCPT_THROTTLE',`3')dnl
dnl #
dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl #
dnl # If you're on a dialup link, you should enable this - so sendmail
dnl # will not bring up the link (it will queue mail for later)
dnl define(`confCON_EXPENSIVE',`True')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
dnl #
dnl # Default Mailer setup
define(`SMART_HOST', 'example.example.local')dnl
LOCAL_DOMAIN(`example.local')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo', `hash /etc/mail/auth/client-info')dnl
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
INPUT_MAIL_FILTER(`bav', `S=unix:/home/openemm/var/run/bav.sock, F=T')dnl
 
Old 03-18-2009, 11:18 AM   #7
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
Quote:
define(`SMART_HOST', 'example.example.local')dnl
This must be configured with the dns hostname of your ISP smtp server.
eg define(`SMART_HOST', 'smtp.your-isp.co.uk')dnl

(but I am thinking this shld be configured within openemm, dont you have somewhere within openemm where you configure smtp settings?, if so, then you have to delete this config from sendmail.mc)
 
Old 03-19-2009, 04:32 AM   #8
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
We host our exchange server locally.

It says here that you should edit the sendmail.mc file.

http://www.openemm.org/faq/questions/25/

The problem seems to me that sendmail can't resolve the EXAMPLE.EXAMPLE.local FQDN of our exchange server. Though I have added this to the hosts file on the ubuntu server. How does sendmail resolve addresses?

Or is the problem because our exchange server uses the domain.local address instead of say domain.co.uk or domain.com?
 
Old 03-19-2009, 04:59 AM   #9
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
http://www.openemm.org/faq/questions/30/
The above link confirms my suspicion, you have a choice to use sendmail or to use an emulation within openemm. however, it seems sendmail option is better.

Quote:
We host our exchange server locally.
Is your exchange server working right now? I mean is it sending and recieving mail to the outside world? IF not, then it cannot be your smarthost. You are mixing things a little bit. You said the exchange server purpose is to provide exchange/outlook functionality internally only, now you refer to it as a smart host. Which server is closer to the internet (or talks to the outside world/isp on port 25) between the exchange server and the linux server?

If your exchange server is your smtp server (the one that sends/rcvs mail out to the world), then surely it should have a dns resolvable name (eg. smtp.example.com) so you use that one instaed of the .local
 
Old 03-19-2009, 08:08 AM   #10
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Is your exchange server working right now? I mean is it sending and recieving mail to the outside world?
Yes and yes

Quote:
Which server is closer to the internet (or talks to the outside world/isp on port 25) between the exchange server and the linux server?
The exchange server

Internally the only AD name is the .local name for the exchange server. The reason we used the .local is as a security measure, as it is not routable through the internet and to my knowledge its best practice.

Last edited by Craigt; 03-19-2009 at 08:12 AM.
 
Old 03-19-2009, 08:46 AM   #11
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
When I send an email campaign with openemm, I want sendmail to forward all outgoing emails to our exchange server, so our exchange server can handle sending them out over the internet. I am pretty sure that you can do this with exchange whilst using it to send/recieve emails for our internal users. As how would spammers use email servers as a relay?

Last edited by Craigt; 03-19-2009 at 08:51 AM.
 
Old 03-19-2009, 10:31 AM   #12
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
Then use the IP address of the exchange server for the smart host;
Quote:
define(`SMART_HOST', `[IP.ad.dre.ss]')dnl
give me an example of an email address of a user who uses your exchange server, that can be email from say yahoo.

Last edited by chitambira; 03-19-2009 at 10:35 AM.
 
Old 03-19-2009, 11:23 AM   #13
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
Added the ip address of the server but still received this message in the maillog

Quote:
Mar 19 16:08:00 SERVERNAME sendmail[6789]: 00001300000000003: to=<EXAMPLE@EXAMPLE.co.uk>, delay=00:00:45, xdelay=00:00:00, mailer=relay, pri=0, relay='ip.ad.dre.ss', dsn=5.1.2, stat=Host unknown (Name server: 'ip.ad.dre.ss': host not found)
Quote:
give me an example of an email address of a user who uses your exchange server, that can be email from say yahoo.
user@xyz.co.uk
 
Old 03-27-2009, 09:27 AM   #14
Craigt
LQ Newbie
 
Registered: Sep 2006
Posts: 17

Original Poster
Rep: Reputation: 0
bump - any new ideas?
 
Old 04-17-2009, 11:21 AM   #15
chitambira
Member
 
Registered: Oct 2008
Location: Fife
Distribution: RHEL, Centos
Posts: 373
Blog Entries: 1

Rep: Reputation: 49
Sorry had been on holiday for 3 wks, can you ping the exhange server from the linux box? try from linux server:
# ping ip.add.re.ss of exchange server
# telnet ip.add.re.ss 25

and tell me the response
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 07:55 AM
sendmail smarthost klaxyn Linux - Networking 3 03-12-2007 10:00 PM
Sendmail configuration (conditional smarthost?) link1305 Linux - Software 2 01-08-2007 01:24 PM
sendmail: deliver every mail directly to the given smarthost TobyD Linux - Networking 3 02-18-2005 05:52 AM
Yet another Sendmail thread... SMARTHOST not working mychl Linux - Networking 1 03-15-2004 08:32 AM


All times are GMT -5. The time now is 11:47 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration