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 at centos.org > http://lists.centos.org/mailman/listinfo/centos >-- Milton Calnek BSc, A/Slt(Ret.) milton at calnek.com 306-717-8737 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
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 optionMail program used by sudo defaults to sendmail. Take a look at mailerpath and mailerflags settings in the sudoers file.