Configure Sendmail to forward email to a specific port
OK
I need to now forward the emails that I am receiving on PORT
25(localhost) to PORT 26(localhost) on the same box. I have
Communigate listening on PORT 26(localhost) and it will receive the
email from sendmail...
These are the 1st set of changes that I am making below.
O DaemonPortOptions=Port=587, Addr=127.0.0.1, Name=MSA, Family=inet,
M=E
To
O DaemonPortOptions=Port=25, Addr=127.0.0.1, Name=MSA, Family=inet,
M=E
# "Smart" relay host (may be null)
DS
To
# "Smart" relay host (may be null)
DSlocalhost
Re: Configure Sendmail to forward email to a specific port
ej <ejackso3 [at] gmail.com> writes:
> OK
>
> I need to now forward the emails that I am receiving on PORT
> 25(localhost) to PORT 26(localhost) on the same box. I have
> Communigate listening on PORT 26(localhost) and it will receive the
> email from sendmail...
> [...]
http://www.sendmail.org/faq/section3.html#3.39
Q3.39 -- How do I send using an alternate port?
Date: May 5, 2002
Updated: January 10, 2004
--
[pl>en: Andrew] Andrzej Adam Filip : anfi [at] priv.onet.pl : anfi [at] xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
Homesite of Andrzej Filip: http://anfi.homeunix.net/
Open-Sendmail: http://open-sendmail.sourceforge.net/
Re: Configure Sendmail to forward email to a specific port
On Sep 24, 11:26 am, Andrzej Adam Filip <a... [at] onet.eu> wrote:
> ej <ejack... [at] gmail.com> writes:
> > OK
>
> > I need to now forward the emails that I am receiving on PORT
> > 25(localhost) to PORT 26(localhost) on the same box. I have
> > Communigate listening on PORT 26(localhost) and it will receive the
> > email from sendmail...
> > [...]
>
> http://www.sendmail.org/faq/section3.html#3.39
> Q3.39 -- How do I send using an alternate port?
> Date: May 5, 2002
> Updated: January 10, 2004
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : a... [at] priv.onet.pl : a... [at] xl.wp.pl
> Before You Ask:http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
> Homesite of Andrzej Filip:http://anfi.homeunix.net/
> Open-Sendmail:http://open-sendmail.sourceforge.net/
Thank you so much.
Re: Configure Sendmail to forward email to a specific port
On Sep 24, 11:26 am, Andrzej Adam Filip <a... [at] onet.eu> wrote:
> ej <ejack... [at] gmail.com> writes:
> > OK
>
> > I need to now forward the emails that I am receiving on PORT
> > 25(localhost) to PORT 26(localhost) on the same box. I have
> > Communigate listening on PORT 26(localhost) and it will receive the
> > email from sendmail...
> > [...]
>
> http://www.sendmail.org/faq/section3.html#3.39
> Q3.39 -- How do I send using an alternate port?
> Date: May 5, 2002
> Updated: January 10, 2004
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : a... [at] priv.onet.pl : a... [at] xl.wp.pl
> Before You Ask:http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
> Homesite of Andrzej Filip:http://anfi.homeunix.net/
> Open-Sendmail:http://open-sendmail.sourceforge.net/
I am so new guys and gals. Just to be honest. I need help with the
correct way to
1. How to configure Sendmail (Solaris 8) to listen on Port 25.
2. How to configure Sendmail (Solaris 8) to forward email to Port 26
on the same box.
3. I'm not even sure as to how to commit the changes to sendmail.
Someone & Everybody, please forgive me for my ignorance!
Re: Configure Sendmail to forward email to a specific port
ej unleashed the infinite monkeys on 25/09/2007 18:49 producing:
> 1. How to configure Sendmail (Solaris 8) to listen on Port 25.
It does that by default
> 2. How to configure Sendmail (Solaris 8) to forward email to Port 26
> on the same box.
See the FAQ entry Andrzej pointed you to
> 3. I'm not even sure as to how to commit the changes to sendmail.
See the Sendmail README:
http://www.sendmail.org/doc/sendmail-current/cf/README
--
Rob MacGregor (BOFH)
Rule 37: "There is no 'overkill'. There is only 'open fire'
and 'I need to reload.'"
Re: Configure Sendmail to forward email to a specific port
On Tue, 25 Sep 2007 10:49:48 -0700, ej <ejackso3 [at] gmail.com> wrote:
> I am so new guys and gals. Just to be honest. I need help with
> the correct way to
> 1. How to configure Sendmail (Solaris 8) to listen on Port 25.
Have you tried the web site at `http://docs.sun.com/'? It
contains a wealth of information about Solaris, and it may be
useful for other things too.
In general, Solaris keeps a copy of all the files you need to
configure Sendmail under `/etc/mail/cf/cf'. You will find a
pretty generic `sendmail.mc' in there.
The steps I usually follow to configure Sendmail on Solaris are
outlined below:
1. Copy all the files under `/etc/mail' to a safe location
----------------------------------------------------------
If something goes wrong, you should be able to quickly revert to
the previous state of things. A backup copy of the entire
`/etc/mail' directory is handy in this case, so you should start
by something like:
# CF="/var/tmp/cf-` date -u '+%Y.%m.%d.%H.%M' `"
# mkdir -p "$CF"
# cd /
# find etc/mail | cpio -p -dmu "$CF"
Write down the $CF path; you may need it later on to restore the
old settings:
# echo "Sendmail backup directory = $CF"
2. Copy the default `sendmail.mc' to a local mc file
----------------------------------------------------
The default `sendmail.mc' is useful as an example, so it's a good
idea to keep it unmodified at all times. Solaris patches may
install a new copy, and it would be a shame to lose your local
modifications because a patch clobbered them.
To keep your local modifications to a new file, you should copy
the original `sendmail.mc' file to a new file and make any local
changes only to the new file:
# cd /etc/mail/cf/cf
# cp sendmail.mc local.mc
It's probably a good idea to create a new `local.submit.mc' file
too, with customizations to the default `submit.mc' file:
# cd /etc/mail/cf/cf
# cp submit.mc local.submit.mc
> 2. How to configure Sendmail (Solaris 8) to forward email to
> Port 26 on the same box.
3. Make any local changes to `local.mc'
---------------------------------------
Read the Sendmail FAQ about the configuration options you need to
add to `local.mc', in order to forward all outgoing email through
`TCP:localhost:26'.
4. Generate the local *.cf files
--------------------------------
When you have finished copying `sendmail.mc' and `submit.mc' to
locally customizable versions, and you have maade all your
customizations to `local.mc' and `local.submit.mc' you can use
the `Makefile' in `/etc/mail/cf/cf' to generate *.cf files.
It is worth noting here that the make(1) utility may *NOT* be in
the default PATH. If this is the case, you can either add
`/usr/ccs/bin' to your PATH, or use an absolute pathname when
calling make(1). I'm using absolute pathnames below.
# cd /etc/mail/cf/cf
# /usr/ccs/bin/make local.cf local.submit.cf
5. Install the new *.cf files
-----------------------------
The new `local.cf' and `local.submit.cf' files must be installed
in `/etc/mail' to start being effective. You can just use cp(1)
for that:
# cd /etc/mail/cf/cf
# cp local.cf /etc/mail/sendmail.cf
# cp local.submit.cf /etc/mail/submit.cf
It's ok to overwrite the original `sendmail.cf' and `submit.cf'
files here. If you need to restore anything, you can use the $CF
path from step [1].
6. Restart sendmail
-------------------
Now you can restart Sendmail. The new config files are in place.