Thanks for the reply.
I have firestarter firewall, but port 25 is open. Both hosts.allow and hosts.deny in the /etc folder is empty except the remarks.
[I"]Your MX record should point to a host name, NOT an IP. You should have a matching A record to translate the host to IP."[/I]
Ok. I made a sub domain called mail.mydomain.com (Hopefully this is an A record) which has my IP address in some IPv4 / IPv6 field (hopefully this translate host to IP) in my domain providers admin page. It is this subdomain I put into my MX 1: field of my "main" domain mydomain.com. So that should work... right??
Ok. Now I have to figure out how to make my sendmail accept this mail that is forwarded / translated to my server. Before I try qmail or PostFix, I will try the /etc/mail/sendmail.mc file. To make my sendmail accept (without making it an open relay server) I would change the following (I think) (from the default sendmail.mc file):
Quote:
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
|
This I would remark out so it doesn't just listen to IPv4 loopback addresss 127.0.0.1, and accepts email from the internet (this would not make it an open relay???)
Quote:
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl #
dnl # NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl # a kernel patch
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
|
Here I would remove the remark characters to make it listen to the IPv6 loopback (whatever that is. Guess this would be some internett thing. This would not make it an open relay???). Would I have to type something in the Addr=::1 field. Eg my routers / ADSL modem IP?
Quote:
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
FEATURE(`accept_unresolvable_domains')dnl
|
Um. Why is this one not remarked out? Should it be?
Quote:
dnl FEATURE(`relay_based_on_MX')dnl
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN('mydomain.com')dnl
dnl #
|
This is where I state my domain name for mail being sent out. Right??
Quote:
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
|
Um um um. What does this do? Well. How about I do the following:I remove dnl before MASQUERADE_AS... line. And remove the dnl that is in front of the FEATURE(masquerade_envelope) line and all the dnl's before the MASQUERADE_DOMAIN... lines. What is a domainalias? and mydomain.lan Is that some network thing.... Hmm... Well. Right? I guess what all the above does is make the mail look like
linuxuser@mydomain.com instead of
linuxuser@linux.mydomain.com...
And then Fedora for Dummies tips me that I should include the line "Cwlocalhost.localdomain mydomain.com mydomain" at the bottom of the file. Ok. Um.. Will do that too..... (Right?)
And after I have done that, it should securly work without being a open relay? Right?
--- To Luggerhouse
This is my telnet file inside /etc/xinetd.d
Quote:
# default: on
# description: The telnet server serves telnet sessions; it uses \
# unencrypted username/password pairs for authentication.
service telnet
{
disable = yes
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
|
So I cannot see anything about port there. Do I simply add a Port = 25 line inside the brackets?
Once I figure out that, I will use the commands "service sendmail stop" to stop sendmail (as the root user). And "service xinetd restart" to make xinetd restart. And try telnet <my ip> 25 from work and checks if it answers to the command helo.
Ok.

Thanks so far...