Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mailutils usage, configuring, debugging [kinda SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 629

PostPosted: Sun Dec 12, 2021 1:26 pm    Post subject: mailutils usage, configuring, debugging [kinda SOLVED] Reply with quote

Hello,

Is mailutils broken in Gentoo?

I can't neither use it, nor configure/debug it.
Code:

LC_ALL=C mail -s "This is the subject" hostmaster <<< 'This is the message'
mail: cannot send message: Process exited with a non-zero status
Code:

LC_ALL=C mail -v "This is the subject" hostmaster <<< 'This is the message'
mail: unrecognized option '-v'

Option -v (--verbose) is mentioned in info mail...

Trying to configure/debug it according to the manual:

https://mailutils.org/manual/html_section/configuration.html#debug-statement
https://mailutils.org/manual/html_section/debugging.html

/etc/mailutils.conf
Code:
# Sample mailutils config file.  Read by all mailutils programs.
# See info mailutils for details.

# Gentoo default is maildir
mailbox {
  mailbox-type maildir;
  mailbox-pattern .maildir;
};

debug {
  # Set Mailutils debugging level.
  level trace9;
 
  # Prefix debug messages with Mailutils source locations.
  line-info true;
}

# Place individual config files here
include /etc/mailutils.d/;
Code:
LC_ALL=C mail -s "This is the subject" hostmaster <<< 'This is the message'
mail: /etc/mailutils.conf:12.3-15: unknown category: trace9
mail: cannot send message: Process exited with a non-zero status

EDIT

Code:
echo $?
36
(File name too long)

Mailing from smartd does not work either (my purpose of fixing mailutils is making smartd to send mails, as AFAIK, smartd can work only via mailutils (?) )

EDIT2

Well, I've written my own smartd_warning_mailer faster than found a solution how to make these mailutils work...
_________________
A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs.


Last edited by halcon on Mon Dec 13, 2021 11:16 am; edited 1 time in total
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2971
Location: Edge of marsh USA

PostPosted: Mon Dec 13, 2021 4:41 am    Post subject: Reply with quote

You should be able to use mail-client/mailx. That's what I do. mailx installs /usr/bin/mail with a symlink from /usr/bin/mailx pointing to it. I also have mail-mta/postfix installed and configured to be able to send mail using smtp. I don't have mailutils installed.
_________________
Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi
Back to top
View user's profile Send private message
halcon
l33t
l33t


Joined: 15 Dec 2019
Posts: 629

PostPosted: Mon Dec 13, 2021 11:16 am    Post subject: Reply with quote

figueroa wrote:
You should be able to use mail-client/mailx. That's what I do.

Oh! It works! Out of the box. :)

Thank you, figueroa.
_________________
A wife asks her husband, a programmer:
- Could you please go shopping for me and buy one carton of milk, and if they have eggs, get 6?
He comes back with 6 cartons of milk.
- Why did you buy 6 cartons of milk?
- They had eggs.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum