Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I have a dedicated mail-relay PS that I need to listen on multiple ports, 25 and 80. I know 80 is http, but because of the applications this is being used for it needs to be able to use port 80 to send emails as well.

Can this be done via Webmin? Sorry for my poor understanding of Sendmail Mail Server, but this is the first time I've seen or used it.

The mail-relay server is setup with a white list to only accept emails from certain IPs. Basically, I have a company locked behind a firewall that needs to send out emails via a program on that computer daily and all ports but 80 are locked.

dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl

I've tried adding addition lines and I broke the config.

share|improve this question
up vote 3 down vote accepted

I do not know whether it can be done via webmin, but you can do this by using the DAEMON_OPTIONS macro in the file. I am certain that webming allows you to edit and the it will generate the correct and restart sendmail.

EDIT: Try:

DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp')dnl
DAEMON_OPTIONS(`Family=inet6, Name=MTA-80, Port=80')dnl
DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
share|improve this answer
I'm worried that I'd do more damage than good in there. – Tyler Mar 6 '12 at 16:53
Keep a backup of the file and then try. – adamo Mar 6 '12 at 16:54
I broke it and restored it. FEATURE(no_default_msa')dnl dnl DAEMON_OPTIONS(Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl Mean anything to you? – Tyler Mar 6 '12 at 17:44
Those lines enable ipV6 for sendmail – kls Mar 6 '12 at 18:34
I updated my answer – adamo Mar 6 '12 at 19:05

Check out DaemonPortOptions.

Previously, sendmail would only listen on one port. Needed to run multiple sendmail daemons to list to multiple ports. Now one daemon can listen on multiple ports on multiple interfaces.

Make sure you have a current enough sendmail version

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.