Bug 187 - mail command didn't work to send email
Summary: mail command didn't work to send email
Status: RESOLVED INVALID
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-26 14:16 CET by AL13N
Modified: 2014-05-08 18:06 CEST (History)
0 users

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description AL13N 2011-02-26 14:16:50 CET
Description of problem:

tried to send email as follows: (in mageia)

[]$ env MAILRC=/dev/null from=maarten.vanraes@gmail.com host=10.238.9.1 mail -s "pubkey for alien" -a .ssh/id_dsa.pub -r maarten.vanraes@gmail.com dest@recipient.org < <( echo "here is pubkey for alien." )

sendmail not installed, email not sent

i guess it uses sendmail internally, but postfix wasn't installed? is there a requirement missing? (or suggests?)



Reproducible: 

Steps to Reproduce:
Comment 1 AL13N 2011-02-26 14:18:33 CET
after installing postfix:

postdrop: unable to look up public/pickup
Comment 2 AL13N 2011-02-26 14:20:11 CET
postfix installation seemed to restart "system logger", but not postfix, i had to start postfix to make the sending email work...
Comment 3 Nicolas Vigier 2011-02-26 14:21:59 CET
nail can also use smtp, so I don't think a dependency is required.
Comment 4 AL13N 2011-02-26 14:24:17 CET
i had to set relayhost, and after that, it worked.

but, i thought mail with host= environment variable should use smtp directly?


@boklm: i was using mail (mailx) not nail
Comment 5 Nicolas Vigier 2011-02-26 14:39:13 CET
So it was just a config problem ?

Status: NEW => RESOLVED
CC: (none) => boklm
Resolution: (none) => INVALID

Comment 6 AL13N 2011-02-26 18:15:11 CET
well, i don't know:

A. [bug?] postfix wasn't installed (even though mail is)
B. [bug?] postfix after installation restarts "system logger", while i think it should restart postfix, not system logger
C. i configured postfix
D. maybe mail can be used without postfix, but i don't know that...
Comment 7 Nicolas Vigier 2011-02-26 18:19:31 CET
Which version of "mail" are you talking about ?
Comment 8 AL13N 2011-02-26 19:17:14 CET
the command i used was "mail"

when i did "man mail" i got a man page from mailx, so i assume mail is an alias of mailx ?
Comment 9 Nicolas Vigier 2011-02-26 19:46:43 CET
You say you are not using nail. But nail provides /bin/mail.
So if you are not using nail, which one are you using ?
Comment 10 AL13N 2011-02-26 20:12:55 CET
hmm, i see your point, i guess i _am_ using nail; it is confusing though

how is nail used with smtp? i followed the man page, but i guess it still used sendmail.

perhaps since nail uses sendmail by default, a suggest could be added?
Nicolas Vigier 2014-05-08 18:06:41 CEST

CC: boklm => (none)


Note You need to log in before you can comment on or make changes to this bug.