You are not logged in.

#1 2010-07-28 20:54:09

ubermensch00
Member
Registered: 2010-07-20
Posts: 29

mailx

I wanted to test the mailx package within dthe Archlinux enviroment. I ran the following to install it...

sudo pacman -S mailx

resolving dependencies...
looking for inter-conflicts...

Targets (1): mailx-8.1.1-7

Total Download Size:    0.04 MB
Total Installed Size:   0.16 MB

Proceed with installation? [Y/n] y
checking package integrity...
(1/1) checking for file conflicts                                                      [##################################################] 100%
(1/1) installing mailx                                                                  [##################################################] 100%

I assumed this was all I needed to do...however when I attempt to use the mailx command it is telling me that the command is not found.

mailx random@email
bash: mailx: command not found

Am I missing something here? Thanks again guys.

Offline

#2 2010-07-28 20:56:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mailx

I use mailx-heirloom and it works fine.
usr/bin/mail - try calling 'mail' instead of 'mailx'.

Last edited by karol (2010-07-28 20:57:44)

Offline

#3 2010-07-28 20:56:42

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,799
Website

Re: mailx

//blue/0/~/ pacman -Ql mailx | grep -F '/usr/bin'
mailx /usr/bin/
mailx /usr/bin/mail

Offline

#4 2010-07-28 20:57:58

ubermensch00
Member
Registered: 2010-07-20
Posts: 29

Re: mailx

karol wrote:

I use mailx-heirloom and it works fine.

I am guessing this is a newer version of the same mailx?

Offline

#5 2010-07-28 21:00:38

ubermensch00
Member
Registered: 2010-07-20
Posts: 29

Re: mailx

/usr/sbin/sendmail: Permission denied

This message appears when I use "mail random@email". Strange though, my permissions on the folder are correct. I checked it numerous times to be certain.

Last edited by ubermensch00 (2010-07-28 21:00:56)

Offline

#6 2010-07-28 21:06:00

ubermensch00
Member
Registered: 2010-07-20
Posts: 29

Re: mailx

ubermensch00 wrote:

/usr/sbin/sendmail: Permission denied

This message appears when I use "mail random@email". Strange though, my permissions on the folder are correct. I checked it numerous times to be certain.

Ok I have mailx being recognized, however I'm still getting the same permissions error on /usr/sbin/sendmail.

Offline

#7 2010-07-28 21:11:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mailx

> I am guessing this is a newer version of the same mailx?
It's a bit ore complicated http://heirloom.sourceforge.net/mailx.html

Do you have sendmail installed?

I had a problem like this too.
http://bbs.archlinux.org/viewtopic.php? … 80#p765580

Run

ln -s /usr/bin/mailx /usr/sbin/sendmail

and try again.

Last edited by karol (2010-07-28 21:16:04)

Offline

#8 2010-07-28 21:20:08

ubermensch00
Member
Registered: 2010-07-20
Posts: 29

Re: mailx

karol wrote:

> I am guessing this is a newer version of the same mailx?
It's a bit ore complicated http://heirloom.sourceforge.net/mailx.html

Do you have sendmail installed?

I had a problem like this too.
http://bbs.archlinux.org/viewtopic.php? … 80#p765580

Run

ln -s /usr/bin/mailx /usr/sbin/sendmail

and try again.

That did the trick. Thanks for the help everyone smile

Offline

#9 2010-07-28 21:29:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mailx

You may open a bug report, because that symlink is a hack IMHO.

Offline

#10 2010-07-29 07:41:19

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: mailx

Instead of the symlink you could try adding the following to .mailrc:

set sendmail="/usr/bin/mailx"

All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#11 2010-07-29 10:26:44

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mailx

loafer wrote:

Instead of the symlink you could try adding the following to .mailrc:

set sendmail="/usr/bin/mailx"

Thanks, I was sure there's another way to fix it :-)

Offline

Board footer

Powered by FluxBB