[SOLVED] Help with davmail and sending mails without authentication.
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Which to me means that sendmail here is trying to leave the message in public/pickup for postfix to pickup but this means that we are not connecting to Davmail at all.
So anyway, my idea was to make postfix act as a relay for Davmail (with authentication), or to remove postfix entirely and replace the sendmail program, and change the commandline params in php.ini.
Can you please give me some advice on how to proceed with either. I can provide you with any conf file or system info that you need.
OK - maybe I scared everyone away with the long explanation.
Basically I need some help with configuring postfix (or just a custom sendmail binary) to do the following:
- I need anonymous mail (without authentication) to be allowed
- the daemon (say postfix) needs to be able to relay all sent mail to the davmail which is already running on port 1025
- the deamon (say postfix) needs to rewrite the sender address (from anonymous) to a default address and then needs to authenticate with davmail to send the mail
I'm reading the postfix documentation as we speak - I'm just hoping someone can help with some pointers - thank you.
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 4546E780542: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 19BCB780545: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active BCE91780534: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 803547804E1: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active E743C78053F: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 77578780547: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active E34A7780543: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 01905780540: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 5DD0A7804E3: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 2EF0F7804CA: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active EB63B780549: No such file or directory
Aug 9 07:51:02 exchange-relay postfix/smtp[7092]: warning: open active 112D378054A: No such file or directory
Aug 9 07:51:08 exchange-relay postfix/smtp[7096]: 0334D780546: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, delay=3813, delays=3421/387/5.3/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:08 exchange-relay postfix/smtp[7093]: E2FF07804E2: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, delay=92716, delays=92324/386/5.5/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:08 exchange-relay postfix/smtp[7095]: EEE0B78053E: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, delay=90764, delays=90372/386/5.5/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:08 exchange-relay postfix/smtp[7092]: CF4317804C7: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, delay=2413854, delays=2413461/386/6.4/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:08 exchange-relay postfix/smtp[7103]: 1609D780541: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, delay=93371, delays=92978/387/5.8/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:08 exchange-relay postfix/smtp[7101]: 0B58378054A: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, delay=92423, delays=92030/387/6/0, dsn=4.7.4, status=deferred (TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7109]: 1DC737804CB: to=<my.user@corp.com>, relay=none, delay=2165960, delays=2165567/393/0/0.09, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7109]: 26687780519: to=<my.user@corp.com>, relay=none, delay=2414253, delays=2413860/393/0/0.05, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7109]: 364817804C9: to=<my.user@corp.com>, relay=none, delay=2414017, delays=2413624/393/0/0.01, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7110]: 2E0647804DE: to=<my.user@corp.com>, relay=none, delay=2416844, delays=2416451/393/0/0.08, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7109]: 3C7E07804DF: to=<my.user@corp.com>, relay=none, delay=93201, delays=92808/393/0/0.06, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7109]: 5585E780518: to=<my.user@corp.com>, relay=none, delay=4398, delays=4005/393/0/0.01, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7110]: 44B7178053D: to=<my.user@corp.com>, relay=none, delay=2165985, delays=2165592/393/0/0.08, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7109]: 5FC537804CA: to=<my.user@corp.com>, relay=none, delay=176847, delays=176454/393/0/0.08, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
Aug 9 07:51:09 exchange-relay postfix/error[7110]: 69494780481: to=<my.user@corp.com>, relay=none, delay=90268, delays=89875/393/0/0.12, dsn=4.7.4, status=deferred (delivery temporarily suspended: TLS is required, but was not offered by host 192.168.9.79[192.168.9.79])
I removed the MUST line from my /etc/postfix/tls_per_site and ran postmap again on the file, and started getting these errors:
Code:
Aug 9 07:59:28 exchange-relay postfix/smtp[7150]: 0B58378054A: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, conn_use=3, delay=92923, delays=92912/11/0/0.1, dsn=4.0.0, status=deferred (host 192.168.9.79[192.168.9.79] said: 451 Error : davmail.exchange.ews.EWSException: ErrorSendAsDenied The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account. (in reply to end of DATA command))
Aug 9 07:59:28 exchange-relay postfix/smtp[7174]: A4A9E780542: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, conn_use=3, delay=91542, delays=91531/11/0/0.09, dsn=4.0.0, status=deferred (host 192.168.9.79[192.168.9.79] said: 451 Error : davmail.exchange.ews.EWSException: ErrorSendAsDenied The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account. (in reply to end of DATA command))
Aug 9 07:59:28 exchange-relay postfix/smtp[7149]: 0334D780546: to=<my.user@corp.com>, relay=192.168.9.79[192.168.9.79]:1025, conn_use=5, delay=4314, delays=4303/11/0/0.13, dsn=4.0.0, status=deferred (host 192.168.9.79[192.168.9.79] said: 451 Error : davmail.exchange.ews.EWSException: ErrorSendAsDenied The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account. (in reply to end of DATA command))
which is progress, because I started getting emails routed to my mailbox (but some of them failed).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.