You are not logged in.

#1 2010-08-30 21:50:54

echasslau
Member
Registered: 2007-09-21
Posts: 113

Looking for a tiny MTA

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

#2 2010-08-30 21:53:24

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

Re: Looking for a tiny MTA

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

#3 2010-08-30 22:10:54

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: Looking for a tiny MTA

i don't get it. what should i do to forward my mails?
i know the solution with the .forward file...

Offline

#4 2010-08-30 22:20:23

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: Looking for a tiny MTA

atm i am able to send mails from the shell, but i want to get the mails created from a cronjob or so

Offline

#5 2010-08-30 22:23:03

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

Re: Looking for a tiny MTA

echasslau wrote:

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

#6 2010-08-30 23:08:47

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Looking for a tiny MTA

You mention SSMTP.... How does that not do what you want...?

Offline

#7 2010-08-31 05:29:44

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: Looking for a tiny MTA

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

#8 2010-08-31 06:21:48

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: Looking for a tiny MTA

Either you want to forward, OR you want to deliver them locally...?

Offline

#9 2010-08-31 07:50:20

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: Looking for a tiny MTA

echasslau wrote:

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

#10 2010-08-31 07:57:26

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: Looking for a tiny MTA

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

#11 2010-08-31 10:08:51

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: Looking for a tiny MTA

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

#12 2010-08-31 14:05:17

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: Looking for a tiny MTA

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

#13 2010-09-03 18:25:39

echasslau
Member
Registered: 2007-09-21
Posts: 113

Re: Looking for a tiny MTA

Thanks ataraxia, exim does excactly what i want...

Offline

Board footer

Powered by FluxBB