OpenWrt Forum Archive

Topic: email relay

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi,

whats the most simple way to make a EMail relay Server using openwrt.

I have a webcam with E-Mail Alarm without ssl support, on a debian server with postfix the camera can send E-Mails to these Server (without ssl) and postfix forwarded these emails (with ssl) to my E-Mail account.

is this possible on a openwrt router?

I played with xmail, but

daemon.err XMail[3466]: Failed to create for eventfd

matze1999

(Last edited by matze1999 on 29 Oct 2014, 14:13)

any idea?

matze1999

Or SSMTP.... very easy to configure and use with GMail/etc. Just google for many many examples of how to configure and use it.

hi,

thanks.

i try postfix ;-), but no complete success.

first, send emails to postfix - working, but forwarding isnt working:

Tue Nov  4 11:43:29 2014 mail.info postfix/smtpd[2081]: connect from unknown[192.168.1.234]
Tue Nov  4 11:43:29 2014 mail.info postfix/smtpd[2081]: 1906D7FC39: client=unknown[192.168.1.234]
Tue Nov  4 11:43:29 2014 mail.info postfix/cleanup[2083]: 1906D7FC39: message-id=<>
Tue Nov  4 11:43:29 2014 mail.info postfix/qmgr[2076]: 1906D7FC39: from=<*************@gmx.de>, size=9970, nrcpt=1 (queue active)
Tue Nov  4 11:43:29 2014 mail.info postfix/smtpd[2081]: disconnect from unknown[192.168.1.234]
Tue Nov  4 11:43:29 2014 mail.warn postfix/smtp[2078]: warning: hash:/etc/postfix/sasl_passwd is unavailable. unsupported dictionary type: hash
Tue Nov  4 11:43:29 2014 mail.warn postfix/smtp[2078]: warning: hash:/etc/postfix/sasl_passwd lookup error for "mail.gmx.net"
Tue Nov  4 11:43:29 2014 mail.warn postfix/smtp[2078]: warning: 1906D7FC39: smtp_sasl_passwd lookup error
Tue Nov  4 11:43:29 2014 mail.info postfix/smtp[2078]: 1906D7FC39: local data error while talking to mail.gmx.net[212.227.17.168]
Tue Nov  4 11:43:29 2014 mail.warn postfix/smtp[2078]: warning: hash:/etc/postfix/sasl_passwd is unavailable. unsupported dictionary type: hash
Tue Nov  4 11:43:29 2014 mail.warn postfix/smtp[2078]: warning: hash:/etc/postfix/sasl_passwd lookup error for "mail.gmx.net"
Tue Nov  4 11:43:29 2014 mail.warn postfix/smtp[2078]: warning: 1906D7FC39: smtp_sasl_passwd lookup error
Tue Nov  4 11:43:29 2014 mail.info postfix/smtp[2078]: 1906D7FC39: to=<**********@gmx.de>, relay=mail.gmx.net[212.227.17.190]:587, delay=0.63, delays=0.09/0/0.53/0, dsn=4.3.0, status=deferred (local data error while talking to mail.gmx.net[212.227.17.190])

whats wrong (hash:/etc/postfix/sasl_passwd is unavailable. unsupported dictionary type: hash)?

matze1999

up

new error
warning: hash:/etc/postfix/sasl_passwd is unavailable. unsupported dictionary type: hash

matze1999

(Last edited by matze1999 on 6 Nov 2014, 09:50)

hi,

after 3 weeks work, it seems that postfix is still to install but no longer supported by openwrt.  :-(

i think no one here is using postfix?

matze1999

(still searching for a email relay solution for openwrt)

In your /etc/postfix/main.cf file, replace "hash:" with "texthash:" and make sure the path points to "/etc/postfix/sasl_passwd", which is a plain text file.  If you already ran "postmap /etc/postfix/sasl_passwd", you can delete the file it created ("rm /etc/postfix/sasl_passwd.cdb").  Don't forget to "/etc/init.d/postfix restart" when you are done.

Postfix supports many different lookup table types, but some require additional software to be installed, or options to be configured at compile.  You can run "postconf -m" to show a list of supported lookup table types.  In openwrt, you will notice that hash is not in the list.

(Last edited by numbers on 12 Jan 2017, 04:58)

The discussion might have continued from here.