Although it is less common to communicate by fax, I need care it. I have installed Hylafax with usb faxmodem and it can receive fax. However Hylafax use SENDMAIL to notify the user the receipt of fax and enclose such fax as email attachment (by tif or pdf). I try ssmtp but it can email without attachment only.
Subsquently, I have installed SENDMAIL+TLS+SASL2 by pkg_add but it ask for sendmail.cf. Then I copy all /etc/mail/*.* from Freebsd 9.1-RC1-amd64-disc to /etc/mail/ in my Nas4Free. But fail:
sendmail[3347]: q9NCNCw6003347: to=user@gmail.com, ctladdr=root (0/0), delay=00:00:30, xdelay=00:00:00, mailer=relay, pri=30079, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Any help to configure SENDMAIL with gmail smtp server or any suggestion how to replace sendmail with other MTA.
Thanks.
______________________________________________________________________________________________
NAS4Free 9.1.0.1 (revision 323) x64-full; 122310 XSDT1951 AMD Athlon(tm) II X4 640 Processor 12800MiB RAM
This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
it will taken offline by the end of march 2021!
I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!
(SOLVED WITH SSMTP) Help to install SENDMAIL
-
vkyk
- Starter

- Posts: 52
- Joined: 24 Jun 2012 16:11
- Location: Hong Kong UTC+08:00
- Status: Offline
(SOLVED WITH SSMTP) Help to install SENDMAIL
Last edited by vkyk on 28 Oct 2012 03:12, edited 1 time in total.
Production1: 11.2.0.4 (R6154) x64-embedded on AMD Athlon(tm) II X4 640 Processor 8G Non-ECC Ram ASUS M4A88T-M 2x2T + 1x4T
Production2: 11.2.0.4 x64-embedded on Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz 12G Non-ECC Ram ASUS B85M-G 3x2T
Test/Backup: 10.3.0.3.4372 x86-embedded on Intel(R) Xeon(R) CPU 3040 @ 1.86GHz 4G Non-ECC Ram HP ML110 G4 2x160G
Production2: 11.2.0.4 x64-embedded on Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz 12G Non-ECC Ram ASUS B85M-G 3x2T
Test/Backup: 10.3.0.3.4372 x86-embedded on Intel(R) Xeon(R) CPU 3040 @ 1.86GHz 4G Non-ECC Ram HP ML110 G4 2x160G
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Help to install SENDMAIL
You have built-in mail sender. System|Advanced|Email tab.
For use gmail may be need
It script work.

For use gmail may be need
Code: Select all
sysctl net.inet.tcp.keepinit=180000
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
vkyk
- Starter

- Posts: 52
- Joined: 24 Jun 2012 16:11
- Location: Hong Kong UTC+08:00
- Status: Offline
Re: Help to install SENDMAIL
alexey123,
I know such email function and have used for my daily log reporting since freenas. I simply fill all the boxes including smtp.gmail.com. However, Hylafax does not use it as mail sender.
Rgds
I know such email function and have used for my daily log reporting since freenas. I simply fill all the boxes including smtp.gmail.com. However, Hylafax does not use it as mail sender.
Rgds
Production1: 11.2.0.4 (R6154) x64-embedded on AMD Athlon(tm) II X4 640 Processor 8G Non-ECC Ram ASUS M4A88T-M 2x2T + 1x4T
Production2: 11.2.0.4 x64-embedded on Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz 12G Non-ECC Ram ASUS B85M-G 3x2T
Test/Backup: 10.3.0.3.4372 x86-embedded on Intel(R) Xeon(R) CPU 3040 @ 1.86GHz 4G Non-ECC Ram HP ML110 G4 2x160G
Production2: 11.2.0.4 x64-embedded on Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz 12G Non-ECC Ram ASUS B85M-G 3x2T
Test/Backup: 10.3.0.3.4372 x86-embedded on Intel(R) Xeon(R) CPU 3040 @ 1.86GHz 4G Non-ECC Ram HP ML110 G4 2x160G
- alexey123
- Moderator

- Posts: 1469
- Joined: 19 Aug 2012 08:22
- Location: Israel, Karmiel
- Contact:
- Status: Offline
Re: Help to install SENDMAIL
Try to write small script on php, which be placed on /usr/sbin/ and named sendmail.sendmail, which will make attach your message to php function.
For learn more see NAS4Free file /etc/inc/email.inc
For learn more see NAS4Free file /etc/inc/email.inc
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
-
vkyk
- Starter

- Posts: 52
- Joined: 24 Jun 2012 16:11
- Location: Hong Kong UTC+08:00
- Status: Offline
Re: (SOLVED WITH SSMTP) Help to install SENDMAIL
Alexey123,
Thanks for your advice but it is difficult for me to follow as it involves to amend or instruct Hylafax to follow such new script. I find that both Sendmail and Ssmtp will not handle attachment so I use ssmtp again in view of its simple and understandable configuration.
Thanks for your advice but it is difficult for me to follow as it involves to amend or instruct Hylafax to follow such new script. I find that both Sendmail and Ssmtp will not handle attachment so I use ssmtp again in view of its simple and understandable configuration.
Production1: 11.2.0.4 (R6154) x64-embedded on AMD Athlon(tm) II X4 640 Processor 8G Non-ECC Ram ASUS M4A88T-M 2x2T + 1x4T
Production2: 11.2.0.4 x64-embedded on Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz 12G Non-ECC Ram ASUS B85M-G 3x2T
Test/Backup: 10.3.0.3.4372 x86-embedded on Intel(R) Xeon(R) CPU 3040 @ 1.86GHz 4G Non-ECC Ram HP ML110 G4 2x160G
Production2: 11.2.0.4 x64-embedded on Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz 12G Non-ECC Ram ASUS B85M-G 3x2T
Test/Backup: 10.3.0.3.4372 x86-embedded on Intel(R) Xeon(R) CPU 3040 @ 1.86GHz 4G Non-ECC Ram HP ML110 G4 2x160G