Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » howto send mail from shell
  •  
xray

Messages: 14
Karma: 0
Send a private message to this user
Hi, is it possible to send mails by shell from the Kerio?

e.g.:
# > mail -s "Message TXT" alias<_at_>domain.gov


regards Jens
  •  
freakinvibe

Messages: 1508
Karma: 58
Send a private message to this user
In the windows version, there is a tool in the MailServer folder:

sendmail.exe

With that command line tool, you can send emails. I guess there will be something similar under Linux and OSX.

The command line options are:

sendmail utility for Kerio Connect (c) Kerio Technologies s.r.o. All rights reserved.

Usage: sendmail [options] [recipient] [recipient] ...

Mail header and body are read from input,
header and body are divided by an empty line

The following options are recognized:
        -B body_type (ignored)
                The message body MIME type: 7BIT or 8BITMIME.
        -F full_name
                Set the sender full name. This is used only with messages
                that have no From: message header.
        -N dsn
                Delivery status notification control: SUCCESS, FAILURE,
                DELAY, NEVER and combinations divided by ','
        -a address
                SMTP server address. The default address is 127.0.0.1. You
                can specify antoher than the default port (25) by adding
                ':port', for example 127.0.0.1:2525
        -bm (ignored)
                Read mail from standard input and arrange for delivery. This
                is the default mode of operation.
        -f sender
                Set the envelope sender address. This is the address where
                delivery  problems  are  sent to, unless the message contains
                an Errors-To: message header.
        -i
                When reading a message from standard input, don't treat
                a line with only a . character as the end of input.
        -oi
                When reading a message from standard input, don't treat
                a line with only a . character as the end of input.
        -o x value (ignored)
                Set  option x to value.
        -p password
                Password for SMTP authentication
        -r sender
                Set the envelope sender address. This is the address where
                delivery  problems  are  sent to, unless the message contains
                an Errors-To: message header.
        -t (ignored)
                Extract recipients from message headers. This requires that
                no recipients be specified on the command line.
        -u user_name
                User name for SMTP authentication
        -v
                Enable verbose logging for debugging purposes. Multiple  -v
                options make the software increasingly verbose. For
                compatibility with sendmail, mailx and other mail submission
                software, a single -v option produces no output.
        -L tag (ignored)
                Set the identifier used in syslog messages to the supplied tag.
        -O option=value (ignored)
                Set option option to the specified value. This form uses long
                names.
        --
                Delimits options. Following arguments (if any) are treated as
                recipients, even if they begin with '-'.


Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
xray

Messages: 14
Karma: 0
Send a private message to this user
Thank you for your tip. I have a Linux Kerio installation, sendmail does not exist on this. Can I install it without affecting for Kerio?
  •  
freakinvibe

Messages: 1508
Karma: 58
Send a private message to this user
Installing sendmail would be overkill and might break stuff. Maybe the tool is already there, you just have to find it.

Hopefully a Linux specialist can help here.

Dexion AG - The Blackberry Specialists in Switzerland
https://dexionag.ch
  •  
xray

Messages: 14
Karma: 0
Send a private message to this user
#find / -name sendmail

/opt/kerio/mailserver/sendmail
  •  
clan

Messages: 232
Karma: 21
Send a private message to this user
sendmail is there, just not installed where it belongs: try /opt/kerio/mailserver/sendmail.
One way to make it available is creating a symbolic link to /usr/bin/sendmail, other solutions depend on your distribution. Just a few days ago there was a thread about using the alternatives command on Fedora or Redhat in this forum, the search should finde it.
  •  
Brian (GFI/Kerio)

Messages: 727
Karma: 70
Send a private message to this user
There is a KB article to address this: http://kb.kerio.com/364

Brian Carmichael
Instructional Content Architect
  •  
xray

Messages: 14
Karma: 0
Send a private message to this user
Sorry but the KB article is not the right for Kerio Connect 8 on Linux. How can I send a mail from shell.

e.g.:
echo "Message TXT" | mail admin@youdomian.com
or
mail -s "Message TXT" admin<_at_>youdomian.com

  •  
lkacian

Messages: 70

Karma: 4
Send a private message to this user
Simply install postfix and configure it to listen only at localhost (inet_interfaces = localhost in main.cf. Disable SMTP service for Kerio on localhost.

Lubor Kacian
FONET Slovakia
  •  
xray

Messages: 14
Karma: 0
Send a private message to this user
Where can I disable SMTP service for Kerio on localhost. In KerioConnect Administration I'm not able to find the option.
  •  
Kedar

Messages: 1320
Karma: 48
Send a private message to this user
Go to Services, select SMTP and change selected IP addresses for this service.
Previous Topic: SPAM coming thru Only ONE user
Next Topic: access kerio connect outside the network via web
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Aug 21 04:56:29 CEST 2017

Total time taken to generate the page: 0.00536 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.