Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

mailutils usage, configuring, debugging [kinda SOLVED]

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
halcon
l33t
l33t
User avatar
Posts: 736
Joined: Sun Dec 15, 2019 8:54 pm

mailutils usage, configuring, debugging [kinda SOLVED]

  • Quote

Post by halcon » Sun Dec 12, 2021 1:26 pm

Hello,

Is mailutils broken in Gentoo?

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

Code: Select all

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: Select all

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_secti ... -statement
https://mailutils.org/manual/html_secti ... gging.html

/etc/mailutils.conf

Code: Select all

# 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: Select all

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: Select all

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...
Last edited by halcon on Mon Dec 13, 2021 11:16 am, edited 1 time in total.
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.
Top
figueroa
Advocate
Advocate
User avatar
Posts: 3032
Joined: Sun Aug 14, 2005 8:15 pm
Location: Edge of marsh USA
Contact:
Contact figueroa
Website

  • Quote

Post by figueroa » Mon Dec 13, 2021 4:41 am

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 -wayland
Top
halcon
l33t
l33t
User avatar
Posts: 736
Joined: Sun Dec 15, 2019 8:54 pm

  • Quote

Post by halcon » Mon Dec 13, 2021 11:16 am

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.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic