Centos 5
Hello
I successfully converted my mta from sendmail to postfix. no problem. mail is ok.
A by-product of that, as bizarre as it may seem is this:
As regular user, when I do 'su -' to become root, all is well.
As regular user, when I do 'sudo bash' I become root alright but I also get:
sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option
I tried many things ranging from temporarily swapping sendmail.postfix to messing around with /etc/profile and /etc/skel/* and many other things.
How can I address the annoying message above?
Thanks, Farid
I'd guess sudo is configured to send mail in some situations. And that the parameters to the program are not what postfix expects.
Farid Hamjavar wrote:
Centos 5
Hello
I successfully converted my mta from sendmail to postfix. no problem. mail is ok.
A by-product of that, as bizarre as it may seem is this:
As regular user, when I do 'su -' to become root, all is well.
As regular user, when I do 'sudo bash' I become root alright but I also get:
sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option
I tried many things ranging from temporarily swapping sendmail.postfix to messing around with /etc/profile and /etc/skel/* and many other things.
How can I address the annoying message above?
Thanks, Farid
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Wed, February 6, 2008 12:02 pm, Farid Hamjavar wrote:
Centos 5
Hello
I successfully converted my mta from sendmail to postfix. no problem. mail is ok.
A by-product of that, as bizarre as it may seem is this:
As regular user, when I do 'su -' to become root, all is well.
As regular user, when I do 'sudo bash' I become root alright but I also get:
sendmail: fatal: Recipient addresses must be specified on the command line or via the -t option
Mail program used by sudo defaults to sendmail. Take a look at mailerpath and mailerflags settings in the sudoers file.
Problem resolved. Thanks. Found syntax issues with sudoers file mentioned in the earlier replies (mailerflags in particular).
Farid