This is in a way a continuation of my recently "purely local DNS"
thread.
To recap: my objective is to send emails to a single domain with both
DNS and any other email traffic being disabled.
A simple working solution that I've found for Postfix is:
/etc/hosts
1.2.3.4 example.com
/etc/postfix/main.cf
smtp_dns_support_level = disabled
smtp_host_lookup = native
Now I'm trying to achieve the same thing for Sendmail to no avail.
So far I've tried:
- the above /etc/hosts entry
- DEAMON_OPTIONS(`Port-smtp,Addr=127.0.0.1, Name=MTA')dnl in
sendmail.mc followed by m4 sendmail.mc > sendmail.cf
- /etc/mail/mailertable
example.com esmtp:[1.2.3.4]
1. Has anybody tried and got it working?
2. What's the best way to engage with Sendmail forums / mailing list?
Both comp.mail.sendmail and newscomp.mail.sendmail usenet groups appear
to be dead.
---
Adam
Sendmail is too old to be supported.
You may use postfix and exim instead. They are main stream MTA software today.
Let me rephrase my question, which should be easier to answer.
What exactly shall I substitute:
mailer = "/usr/sbin/sendmail -t"
This is in a way a continuation of my recently "purely local DNS" thread.
To recap: my objective is to send emails to a single domain with both
DNS and any other email traffic being disabled.
A simple working solution that I've found for Postfix is:
/etc/hosts
1.2.3.4 example.com
/etc/postfix/main.cf
smtp_dns_support_level = disabled
smtp_host_lookup = native
Now I'm trying to achieve the same thing for Sendmail to no avail.
So far I've tried:
- the above /etc/hosts entry
- DEAMON_OPTIONS(`Port-smtp,Addr=127.0.0.1, Name=MTA')dnl in sendmail.mc followed by m4 sendmail.mc > sendmail.cf
- /etc/mail/mailertable
example.com esmtp:[1.2.3.4]
1. Has anybody tried and got it working?
2. What's the best way to engage with Sendmail forums / mailing list?
Both comp.mail.sendmail and newscomp.mail.sendmail usenet groups appear
to be dead.
---
Adam
Let me rephrase my question, which should be easier to answer.
What exactly shall I substitute:
mailer = "/usr/sbin/sendmail -t"
with in /usr/share/logwatch/default.conf/logwatch.conf
to make logwatch use postfix (already working without DNS) instead of sendmail?
Let me rephrase my question, which should be easier to answer.
What exactly shall I substitute:
mailer = "/usr/sbin/sendmail -t"
with in /usr/share/logwatch/default.conf/logwatch.conf
to make logwatch use postfix (already working without DNS) instead of sendmail?
Adam,
I dislike people to reply to my questions but do not answer the
question, instead suggest I do something totally different.
Please forgive me, as that is what I am about to do.
I have had, what seems to me to be similar issue, my solution was to
set up an authoritative BIND9 server on the email/web server in
question, and have the server first use its own BIND9 server's DNS
service first.
Admittedly I did not care if my authoritative BIND9 server went out
the the Internet for any queries for which it was not authoritative.
It did allow me to run the server isolated either from the Internet
and/or connected to the Internet.
Blimey. You are COMPLETELY confused, aren't you.
If postfix (the package named "postfix") is installed, and if sendmail
(the package named "sendmail") is NOT installed, then you are using
Postfix to send mail.
Part of the postfix package is a /usr/sbin/sendmail program which
implements the command line interface for local programs to send mail.
EVERY MTA has to implement the /usr/sbin/sendmail program.
Including Postfix.
If you're running Postfix (*not* Sendmail) as your MTA, and if you've
got it configured how you want it, then you are DONE. You don't need
to ask us how to configure Sendmail to do the same thing, because you're
not USING Sendmail.
This is in a way a continuation of my recently "purely local DNS" thread.
To recap: my objective is to send emails to a single domain with both DNS and any other email traffic being disabled.
A simple working solution that I've found for Postfix is:
/etc/hosts
1.2.3.4 example.com
/etc/postfix/main.cf
smtp_dns_support_level = disabled
smtp_host_lookup = native
Now I'm trying to achieve the same thing for Sendmail to no avail.
So far I've tried:
- the above /etc/hosts entry
- DEAMON_OPTIONS(`Port-smtp,Addr=127.0.0.1, Name=MTA')dnl in sendmail.mc followed by m4 sendmail.mc > sendmail.cf
- /etc/mail/mailertable
example.com esmtp:[1.2.3.4]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:44:29 |
Calls: | 10,392 |
Files: | 14,064 |
Messages: | 6,417,215 |