{"id":733,"date":"2014-07-30T07:02:00","date_gmt":"2014-07-30T14:02:00","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=733"},"modified":"2014-07-30T07:02:00","modified_gmt":"2014-07-30T14:02:00","slug":"sendmail-mail-submission","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/sendmail-mail-submission\/","title":{"rendered":"Sendmail Mail Submission"},"content":{"rendered":"
I have struggled with this before and now I will make a note of it to save myself time when I encounter this again.<\/p>\n
I have a setup on Solaris 11 where I am running a custom filter to accept mail on port 25 and then pass it on to sendmail for processing.\u00a0 My filter need the sendmail daemon and I am running the sendmail daemon on port 10026. In a normal sendmail setup you are not stealing port 25 so I doubt you will have local mail submission problems.\u00a0 And you might not need local mail submission with mail or mailx anyhow.\u00a0 If you do need local mail submission and defaults are not working as was in my case below is my fix.<\/p>\n
Make sure you are running the sendmail client.<\/p>\n
\r\n# svcs -a | grep sendmail\r\nonline Jun_30 svc:\/network\/smtp:sendmail\r\nonline 6:43:35 svc:\/network\/sendmail-client:default\r\n<\/pre>\nGenerate \/etc\/mail\/submit.cf. In my case I copied and edited custom_submit.mc. Note I had to use \"MSA\".<\/p>\n
\r\n# pwd\r\n\/etc\/mail\/cf\/cf\r\n# diff submit.mc custom_submit.mc\r\n[...]\r\n< FEATURE(`msp', `[127.0.0.1]')dnl\r\n---\r\n> FEATURE(`msp', `[127.0.0.1]',`MSA')dnl\r\n\r\n# \/usr\/ccs\/bin\/m4 ..\/m4\/cf.m4 custom_submit.mc > \/etc\/mail\/submit.cf\r\n<\/pre>\nRestart client<\/p>\n
\r\n# svcadm disable svc:\/network\/sendmail-client:default\r\n# svcadm enable svc:\/network\/sendmail-client:default\r\n<\/pre>\nLinks:
\nhttp:\/\/docs.oracle.com\/cd\/E19253-01\/816-4555\/mailrefer-106\/index.html<\/p>\n