However, this has no effect. Any ideas?
In my Laravel project I get the following error:
Code: Select all
Swift_TransportException thrown with message "Expected response code 220 but got code "", with message """
Code: Select all
Swift_TransportException thrown with message "Expected response code 220 but got code "", with message """
Code: Select all
type=AVC msg=audit(1512637095.217:334478): avc: denied { execute } for pid=6698 comm="sendmail" name="smtpd" dev="vda1" ino=20576 scontext=system_u:system_r:system_mail_t:s0 tcontext=system_u:object_r:postfix_smtpd_exec_t:s0 tclass=file
type=SYSCALL msg=audit(1512637095.217:334478): arch=c000003e syscall=59 success=no exit=-13 a0=558c6362ccc0 a1=558c6362cc60 a2=558c6362ca30 a3=4 items=0 ppid=25939 pid=6698 auid=4294967295 uid=993 gid=991 euid=993 suid=993 fsuid=993 egid=991 sgid=991 fsgid=991 tty=(none) ses=4294967295 comm="sendmail" exe="/usr/sbin/sendmail.postfix" subj=system_u:system_r:system_mail_t:s0 key=(null)
type=PROCTITLE msg=audit(1512637095.217:334478): proctitle=2F7573722F7362696E2F73656E646D61696C002D6273
What do you mean? Isn't that what supposed to happen when I use sendmail from a webapplication like Laravel?TrevorH wrote:setsebool -P httpd_can_sendmail=on allows httpd to connect to port 25. Your code appears to be trying to invoke the sendmail binary to send mail.
Code: Select all
sealert -a /var/log/audit/audit.log
Code: Select all
SELinux is preventing /usr/sbin/postdrop from using the setrlimit access on a process.
allow this access for now by executing:
# ausearch -c 'postdrop' --raw | audit2allow -M my-postdrop
# semodule -i my-postdrop.pp
SELinux is preventing /usr/sbin/sendmail.postfix from execute access on the file smtpd.
allow this access for now by executing:
# ausearch -c 'sendmail' --raw | audit2allow -M my-sendmail
# semodule -i my-sendmail.pp
Code: Select all
I get:
Swift_TransportException thrown with message "Expected response code 220 but got code "", with message """
Apart from the one on 127.0.0.1?The owner of the webapp doesn't own an SMTP server