The officially official Devuan Forum!

You are not logged in.

#1 2024-05-04 23:02:41

Mike
Member
From: East Texas, USA
Registered: 2023-12-31
Posts: 35  

[SOLVED] Dragonfly MTA not forwarding cron mail

In /var/spool/dma are some 200+ messages a few are cron daily reports the rest are ' fail to deliver'.
I don't see anything in /etc/dma/dma.conf that looks like it should be other than default except SMARTHOST smtp.frontier.com
/etc/aliases points everything to root, then root to mike.
I didn't expect it to make a diference but created /root/Mail just in case. It didn't help.
I use fetchmail and mutt to read mail from off site and that works fine.
Thinking it might be a permissions problem I looked at these:
mike@DevuanPI4b:~> ls -l /var/mail
lrwxrwxrwx 1 root root 26 Feb 10 11:06 /var/mail -> /mc/docs/letters/incoming/
Mikemike@DevuanPI4b:~> ls -l /var/mail/
total 312
-rw--w---- 1 mike mail 317051 May  4 16:17 mike
-rw--w---- 1 root mail      0 Feb 20 02:05 root
mike@DevuanPI4b:~> ls -l /mc/docs/letters/incoming/
total 312
-rw--w---- 1 mike mail 317051 May  4 16:17 mike
-rw--w---- 1 root mail      0 Feb 20 02:05 root

At the moment I'm baffled, what am I missing?
Suggestions welcome.
Thanks,
Mike

Last edited by Mike (2024-05-04 23:09:11)

Offline

#2 2024-05-05 00:48:26

golinux
Administrator
Registered: 2016-11-25
Posts: 3,302  

Re: [SOLVED] Dragonfly MTA not forwarding cron mail

Dragom or Dragon?

Online

#3 2024-05-05 13:24:00

Mike
Member
From: East Texas, USA
Registered: 2023-12-31
Posts: 35  

Re: [SOLVED] Dragonfly MTA not forwarding cron mail

Yeah, I'm not much of a typist.
Dragonfly.

Offline

#4 2024-05-05 14:37:18

Mike
Member
From: East Texas, USA
Registered: 2023-12-31
Posts: 35  

Re: [SOLVED] Dragonfly MTA not forwarding cron mail

BTW, where did you get 'Dragom' from?
Did I originally post the question as 'Dragomfly' and you changed it to 'Dragonfly'?
If so, Thank you.
Mike

Last edited by Mike (2024-05-05 14:52:20)

Offline

#5 2024-05-05 14:39:16

golinux
Administrator
Registered: 2016-11-25
Posts: 3,302  

Re: [SOLVED] Dragonfly MTA not forwarding cron mail

It was typed in title of this thread. I corrected it after your confirmation.

Online

#6 2024-05-16 20:10:05

Mike
Member
From: East Texas, USA
Registered: 2023-12-31
Posts: 35  

Re: [SOLVED] Dragonfly MTA not forwarding cron mail

The problem turned out to be permissions.
I'm running on a RaspberryPi4b and switching back and forth between Debian bookworm and Devuan daedalus.
I kept finding that I didn't have access to emails downloaded in one system while on the other.
Since my personal stuff is on a thumb drive that moves between the two systems and is mounted as /mc on both, I set
~/Mail -> /mc/docs/letters/ and /var/spool/mail -> /mc/docs/letters/incoming/.
Being a touch paranoid /mc and /mc/* was owned mike:mike with 770 permissions.
Since fetchmail and mutt were run by mike that wasn't a problem but cron couldn't deliver a daily report.
Setting all the path /mc/docs/letters/incoming to 771 and changing */incoming ownership to mike:mail has allowed cron mail to get delivered..
Though I've been using Linux for a decade I've still a lot to learn.

Be well all,
Mike

Offline

Board footer