T
T
taaadm2015-10-15 15:46:47
linux
taaadm, 2015-10-15 15:46:47

What are the means to send mail from different accounts from the console?

Monitoring (zabbix on Centos7), depending on the group that the host belongs to, should send notifications from different email addresses. All these addresses are on Yandex. I implemented it like this: sending was through a script that, from the header, understood which group the node belongs to, selected a mailbox for sending, and then launched the mail client. I already used ssmtp mail clients (I don’t like switching between mailboxes here and I couldn’t set it up to work with tls), sendEmail (I liked it more, but the project is very old and also has problems with tls) and a self-written telnet script (it’s okay earned centos7).
What email clients would you use?
Now I'm trying postfix as mta, but I can't think of a mechanism for switching mailboxes

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
taaadm, 2015-11-02
@taaadm

I did it again using sendEmail, using ssl, but on Yandex it works only through port 587 with some editing of the script from the official website of the project

Z
zorruch, 2015-10-15
@zorruch

Why such a bike?
In zabbix just create another type of e-mail notification. Where the smtp server is specified, SMTP helo and SMTP email
in your case mta will be a different SMTP email name.
Next, you will need to enable this type of notification for certain groups / users.

V
Victor Taran, 2015-10-30
@shambler81

well, if it comes to that, who is stopping you from sending mail from any of the domains, in fact, this is a pure text field. And from whom is this just a text.
All you need to do is to add the corresponding entry to the SPF to the corresponding domains (so that it does not fall into spam) and in fact it will be possible to send mail from [email protected] to [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question