Results 1 to 3 of 3

Thread: Query: How to Set Up a local smtp email server from own system?

Hybrid View

  1. #1
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272

    Query: How to Set Up a local smtp email server from own system?

    At a glance, the issue is minor. There are solutions available on the internet. For example, this
    (1) How To Install and Configure Postfix as a Send-Only SMTP Server on Ubuntu 14.04 at https://www.digitalocean.com/communi...n-ubuntu-14-04
    (2) Simple local smtp server - minimal setup ubuntu on https://superuser.com/questions/3472...l-setup-ubuntu
    Requires postfix.
    Postfix requires following dependencies, in chained order of pre-requisite:
    postfix_2.9.6-2_i386.deb
    mailutils_2.99.97-3_i386.deb
    mailutils-common_2.99.97-3_all.deb
    libmailutils4_2.99.97-3_i386.deb
    libgsasl7_1.8.0-2_i386.deb

    Finally, attempt to installation of postfix reports:
    "clashes with smail"

    I skimmed through the man page of smail.
    Quote Originally Posted by man smail
    ... It is not intended to be a user interface for
    reading and submitting mail. See mailx(1) on System V, Mail(1) on BSD
    systems, or mail(1) on other systems for information on user inter‐
    faces ...
    I tried this command:
    Code:
    smail -bP '${smtp_hello_reject_hostnames}'
    Elaborate output more than just the intended line in man page of smail:
    Code:
    localhost(\.)*;You've got to be kidding!  If you really were 'localhost' I'd be talking to myself!:.*\.localdomain;There is no such domain 'localdomain'!:.*\.test;There is no such domain 'test' -- it is reserved by IANA as per RFC 2606:.*\.example;There is no such domain 'example' -- it is reserved by IANA as per RFC 2606:.*\.invalid;There is no such domain 'invalid' -- it is reserved by IANA as per RFC 2606:.*\.localhost;There is no such domain 'localhost' -- it is reserved by IANA as per RFC 2606:(.*\.)*example\.com;There is no such domain 'example.com' -- it is reserved by IANA as per RFC 2606:(.*\.)*example\.net;There is no such domain 'example.net' -- it is reserved by IANA as per RFC 2606:(.*\.)*example\.org;There is no such domain 'example.org' -- it is reserved by IANA as per RFC 2606:${rxquote:hostnames}
    Skimmed through man page of mail:
    ...
    Sending mail
    To send a message to one or more people, mail can be invoked with argu‐
    ments which are the names of people to whom the mail will be sent. You
    are then expected to type in your message, followed by a control-D (‘^D’)
    at the beginning of a line. The section below, Replying to or
    originating mail, describes some features of mail available to help you
    compose your letter.
    ...
    The /etc/mail.rc contains the lines:
    set ask askcc append dot save crt
    ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via Delivered-To
    Easily understood.

    A visual editor could also be used:
    EDITOR Pathname of the text editor to use in the edit command and
    ~e escape. If not defined, /usr/bin/ex is used.
    Now to exim4. Uses MTA. Details in https://packages.debian.org/wheezy/exim4
    But also clashes with smail.
    I am not amenable to remove something that is installed by Knoppix system developers.

    I won't like to use the "mail" command, as it involves a lot of editing the system files and isn't very intuitive, one which is an automatic plus for visual email clients.

    I have to set up a local smtp email server first through the tools available within Knoppix. Then, to use icedove or claws-mail. Without installing postfix as it clashes with smail.

    I know 7.2.0 is an ancient version. But it works perfectly okay for me. So I don't wish to replace it. Doesn't require replacement at least, in the present case.

  2. #2
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    Knoppix also has sendmail installed. I will learn to configure sendmail.
    Info here: http://brennan.id.au/12-Sendmail_Server.html

  3. #3
    Senior Member registered user
    Join Date
    Dec 2008
    Location
    Mysore, India
    Posts
    272
    The page link posted above should not be used. Knoppix has sendmail and smail.
    Code:
     whereis smail
    Code:
    smail: /usr/sbin/smail /etc/smail /usr/lib/smail /usr/share/man/man5/smail.5.gz /usr/share/man/man8/smail.8.gz
    smail has its binary in "/usr/sbin/smail" and directory in "/etc/smail/" and within it has empty directories "methods" and "maps".
    Code:
     whereis sendmail
    Code:
    sendmail: /usr/sbin/sendmail /usr/lib/sendmail /usr/share/man/man8/sendmail.8.gz
    But sendmail binary in these two directories are only symbolic links.
    Strangely Wheezy has the package sendmail and not smail. Searching with string smail in Debian Wheezy leads to "extsmail" and "asmail".
    So my queries:
    (1) What is the reason for choosing smail, instead of sendmail, exim4 or postfix, for instance, in Knoppix 7.2.0 based on Debian Wheezy?
    (2) What is the origin of the package smail?
    (3) When the package sendmail was tried for installation, it directed removal of smail. Why?

    Found this guide:
    Install Sendmail mail server on Debian GNU / Linux
    [url=https://www.debian.org/doc/manuals/debian-reference/ch06.en.html#_the_mail_system]The current Debian Documentation[url] says that exim4 has most popular votes, postfix, second. Then sendmail.
    But there must be a reason for Dr. Klaus Knopper's using sendmail and not exim4 or postfix. Would like to know the reason. In the man page for smail, it is mentioned:
    ... Smail was designed to be as close of a plug-in replacement for the BSD sendmail program as possible. External programs can call smail in very much the same manner that they previously called sendmail and expect similar results. ...
    Which leads me to the question: Which External Programs?
    Will uninstalling smail result in breaking of any other packages?
    Last edited by rajibando; 09-24-2018 at 01:38 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


DELL PowerEdge R730XD 24x 2.5

DELL PowerEdge R730XD 24x 2.5" Server Dual 750W Dual Heatsink - BareBones TESTED

$299.99



Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS picture

Supermicro 4U 36 Bay Storage Server 2.4Ghz 8-C 128GB 1x1280W Rails TrueNAS ZFS

$721.06



Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 4x1G RJ-45 NIC 2x750W PSU picture

Dell PowerEdge R630 8SFF 2.6Ghz 20-Core 128GB Mem 4x1G RJ-45 NIC 2x750W PSU

$399.04



CSE-118 Supermicro 1U 3x GPU Server  2.1Ghz 16-C 128GB CX353A 2x1600W PSU Rails picture

CSE-118 Supermicro 1U 3x GPU Server 2.1Ghz 16-C 128GB CX353A 2x1600W PSU Rails

$450.03



INTEL XEON GOLD 6148 20 Core SR3B6 2.4GHZ 27.5MB Processor    @24 picture

INTEL XEON GOLD 6148 20 Core SR3B6 2.4GHZ 27.5MB Processor @24

$99.99



Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU picture

Intel Xeon Gold 6140 SR3AX 2.3GHz 18-Core Processor CPU

$39.99



Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5 picture

Intel Xeon Gold 6138 2.0GHz 27.5MB 20-Core 125W LGA3647 SR3B5

$46.00



Intel Xeon E5-2690V2 3.00GHz 10-Core (SR1A5) Processor CPU READ DESCRIPTION picture

Intel Xeon E5-2690V2 3.00GHz 10-Core (SR1A5) Processor CPU READ DESCRIPTION

$12.00



HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 512 SSD Quadro K420 Linux GA picture

HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 512 SSD Quadro K420 Linux GA

$243.59



Dell Precision 5810 Tower Intel Xeon E5-1603v3 2.8GHz 8GB RAM 500GB HDD W10P GPU picture

Dell Precision 5810 Tower Intel Xeon E5-1603v3 2.8GHz 8GB RAM 500GB HDD W10P GPU

$129.99