Hi folks,
I would like to use sendmail as a relay, but would like to rewrite all
What's the easiest way to do this ?
Thanx,
Herb
I would like to use sendmail as a relay, but would like to rewrite all
What's the easiest way to do this ?
Thanx,
Herb
> I would like to use sendmail as a relay, but would like to rewrite all
This is only moderately tricky, but there are several steps.
1. Find and install the sendmail source stuff; you will need to
end up with a batch of files in /usr/lib/sendmail-cf. How to do this
depends a great deal on which distribution you have access to.
You will also need to have the m4 preprocessor installed; mine
is in /usr/bin/m4
2. In /usr/lib/sendmail-cf/cf/ you should find a bunch of *.mc files.
Choose one that has OSTYPE(`linux') in the first few lines, to use
as a starting point. (Mine is named redhat.mc). Add the following
lines to this, just above the spot where HACKS(...) begin to appear.
define(`LOCAL_RELAY')
MASQUERADE_AS(mydomain.net)
MASQUERADE_DOMAIN(mydomain.net)
FEATURE(masquerade_envelope)
3. Following the directions in /usr/lib/sendmail-cf/README, run m4 to
generate a sendmail.cf file (your choice of names), and then TEST IT
using the sendmail -bt option.
4. I think I also needed to create the file /etc/sendmail.cw which
contains the various names by which my server should be known to
sendmail. I have two lines in this file: the ONE TRUE NAME for
the host (its A record, per DNS), and mydomain.net, in your terms.
2- In sendmail.cw put the hosts that will use the relay such as:
host1.somewhere.com
host2.somewhere.com
.
.
If your hosts are not qualified names (fqdn) use the hosts file
like : 192.168.1.1 host1.somewhere.com
192.168.1.2 host2.somewhwre.com
Hope this helps
Pic
>I would like to use sendmail as a relay, but would like to rewrite all
>What's the easiest way to do this ?
>Thanx,
>Herb
1. Sendmail: root@domain.com instead of root@host.domain.com
Hi all!
I'm wrestling with sendmail, and I hope someone here can help out with a
frustrating problem.
I have a script that sends out an email at specific times using sendmail.
However, due to relaying-restrictions (that I have no problems with, and
understand completely) my MTA ain't allowed to send mail because it says
I tried with the help of a howto setting:
MASQUERADE_AS(yourdomain.net)dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
But it soesn't seem to do anything for me. Does anyone have an idea what I'm
doing wrong??
Any input appreciated!
TIA,
Orjan
3. USING SENDMAIL "user@domain.com" vs. "user@host.domain.com"
4. php won't parse: (I've tried the usual suspects)
5. myname@host.domain.com --> myname@domain.com ??
6. lpd problems with HP LaserJet 5M and NS3.3
7. Sendmail and header rewriting joe@mail.domain.com to joe@domain.com
8. Any source available for memory management?
9. Resolving domain.com as well as name.domain.com
10. connected domains: xyz.host.com/abc.host.com
11. $$ Domain sale: meetLINUX.com,LinuxCares.com, softwares4linux.com And more $$
12. Apache Rewrite domain.com->index.php domain.org->index2.php