Situation:
FreeBSD 14.1, small server, no desktop.
On the host I use a sendmail server (MTA) for email. I also send emails that goes to root to my private email address: like "daily security run output" messages.
There is a jail with a web server. Inside the jail there is only dma (DragonFly Mail Agend) form FreeBSD installed. The jail communicate with the host about nat rules and IPFW firewall: ping, port 80 and 443 works.
Problem:
I can not send email from the jail to the outside. I do not want receive emails inside the jail, but want send also messages to my private email address. Or get anyway the messages inside the jail for root and webmaster to outside to the host and send it then automatic to my private email address, so I now what's going on inside the jail and not only from the host.
I had try to configure dma with the settings from Handbook and port 25. Sending an test email starts, but then I get curious errors in maillog. I remember port 25 is used on the host, and the same port for host and jail can not be used at the same time
Question:
How to send an email from inside a jail, when on the host is also an email service used?
Is there any concept or instruction to configure that?
How get a sysadmin information's from, maybe a lot of jails, without connect to every of them and look inside?
Thanks for your advice!
FreeBSD 14.1, small server, no desktop.
On the host I use a sendmail server (MTA) for email. I also send emails that goes to root to my private email address: like "daily security run output" messages.
There is a jail with a web server. Inside the jail there is only dma (DragonFly Mail Agend) form FreeBSD installed. The jail communicate with the host about nat rules and IPFW firewall: ping, port 80 and 443 works.
Problem:
I can not send email from the jail to the outside. I do not want receive emails inside the jail, but want send also messages to my private email address. Or get anyway the messages inside the jail for root and webmaster to outside to the host and send it then automatic to my private email address, so I now what's going on inside the jail and not only from the host.
I had try to configure dma with the settings from Handbook and port 25. Sending an test email starts, but then I get curious errors in maillog. I remember port 25 is used on the host, and the same port for host and jail can not be used at the same time
Question:
How to send an email from inside a jail, when on the host is also an email service used?
Is there any concept or instruction to configure that?
How get a sysadmin information's from, maybe a lot of jails, without connect to every of them and look inside?
Thanks for your advice!