Bienvenidos

Todos estos pasos descriptos fueron probados en ambientes productivos

viernes, 28 de julio de 2017

Sendmail, solo funciona con el usuario root ?

Nooo, si funciona con root, puede funcionar con cualquier usuario.

Pero con un usuario distinto a root , me tira el sig error :

WARNING: RunAsUser for MSP ignored, check group ids (egid=0, want=25)
can not chdir(/var/spool/clientmqueue/): Permission denied
Program mode requires special privileges, e.g., root or TrustedUser.

Obviamente como el error lo dice, es un tema de permisos.

La Error en este caso se daba Aqui:
root # ls -ltr /usr/lib/sendmail
-r-xr-sr-x   1 root     root     1056324 Sep 22  2010 /usr/lib/sendmail
root #

El grupo del ejecutable sendmail, estaba como root,y debe ir smmsp.

la Solucion fue
root # chown root:smmsp /usr/lib/sendmail

root # ls -ltr /usr/lib/sendmail
-r-xr-sr-x   1 root     smmsp    1056324 Sep 22  2010 /usr/lib/sendmail
root #

No fue necesario realizar un restart del servicio.

Por las dudas dejo de ejemplo, como deben estar los permisos en todo lo que respecta a sendmail

root # ls -ld /var/spool/mqueue
drwxr-x---   2 root     bin          512 Jul 28 09:31 /var/spool/mqueue
root # ls -ld /var/spool/clientmqueue
drwxrwx---   2 smmsp    smmsp        512 Jul 28 09:31 /var/spool/clientmqueue
root #
root # ls -ltr /etc/mail/sendmail.cf
-r--r--r--   1 root     bin        40277 Apr  7  2016 /etc/mail/sendmail.cf
root #
root # ls -ltr /usr/sbin/sendmail
lrwxrwxrwx   1 root     root          15 Apr  6  2016 /usr/sbin/sendmail -> ../lib/sendmail
root # ls -ltr /usr/lib/sendmail
-r-xr-sr-x   1 root     smmsp    1073396 Nov 24  2014 /usr/lib/sendmail
root #

2 comentarios:

  1. Do you understand there's a 12 word sentence you can communicate to your partner... that will trigger deep emotions of love and instinctual attractiveness to you buried inside his chest?

    Because hidden in these 12 words is a "secret signal" that fuels a man's instinct to love, adore and protect you with all his heart...

    =====> 12 Words Will Trigger A Man's Love Impulse

    This instinct is so hardwired into a man's genetics that it will make him try better than before to make your relationship the best part of both of your lives.

    As a matter of fact, triggering this all-powerful instinct is so binding to having the best possible relationship with your man that the second you send your man a "Secret Signal"...

    ...You will immediately notice him open his mind and soul to you in such a way he's never experienced before and he will identify you as the only woman in the galaxy who has ever truly understood him.

    ResponderEliminar
  2. When you have doubts about your law assignment writing or anything, talk to qualified experts of fullassignment. Get an instant and quick help at reasonable price for your commercial law homework help, law homework help

    ResponderEliminar