You are not logged in.
Hi guys.
I'am looking for a tiny MTA only to forward my user mails to my real mailbox.
Perhaps there is a smarter solution than using a MTA daemon. A script using msmtp/ssmtp or so...
Thanks in advance
Andreas
Last edited by echasslau (2010-08-30 21:52:09)
Offline
IIRC mailx-heirloom has it's own MTA.
https://bbs.archlinux.org/viewtopic.php?pid=765570
Last edited by karol (2010-08-30 21:54:40)
Offline
i don't get it. what should i do to forward my mails?
i know the solution with the .forward file...
Offline
atm i am able to send mails from the shell, but i want to get the mails created from a cronjob or so
Offline
atm i am able to send mails from the shell, but i want to get the mails created from a cronjob or so
I know nothing about forwarding, but there's no problem in creating a script for cron to execute: take "all those files" and "do this".
Offline
You mention SSMTP.... How does that not do what you want...?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Perhaps talking about different problems. I've never had mails in my mbox file. But outputs of crons should be there...
I think the problem is that there is no daemon listening for mails and "send" them to the users. How do the mails go into my user mbox?
The forward thing is the second step I think.
Offline
Either you want to forward, OR you want to deliver them locally...?
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
I've never had mails in my mbox file. But outputs of crons should be there...
man crond
You can send the output anywhere you want (-m), you can use a script (-M) so I guess you could just append it to the end of a file?
Last edited by vacant (2010-08-31 07:51:02)
Offline
you could use msmtp for example as described here: cron and msmtp. There is also a page about msmtp in the wiki.
My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP
Offline
Hmm, the mails from cron is only one example. Thats not what was my goal.
echo test | mail MyMailAddress
works correct, but
echo test | mail MyLocalUser
should also redirect to my mail address
Is this possible with msmtp/ssmtp?
Offline
You can use exim if you just want local delivery. It requires no setup (other than setting an alias for what user gets root's mail) and you don't have to run any daemon at all if you don't want to.
Offline
Thanks ataraxia, exim does excactly what i want...
Offline