Results 1 to 2 of 2

Thread: Using Knoppix to send mail externally from a script?

  1. #1
    Junior Member
    Join Date
    Apr 2005
    Posts
    3

    Using Knoppix to send mail externally from a script?

    Hello

    Using Knoppix 3.8.1 I would like to use a script to email my ISP when a particular event occurs. I am having trouble doing this.

    I thought I would use mutt in command line mode, and that would invoke smail (which is running as a daemon), but I think I have something wrong in some set up somewhere - I hoped to use smail to talk with my ISPs smtp server - but it just does not work. (I used smailconfig --force to set it up - but confess may have got something wrong). If I telnet directly to port 25 on Knoppix (proferred by smail), and after the HELO business, do a MAIL FROM: - it fails as the sender is not OK - it cannot seem to resolve the (MAIL FROM) email address. I presume this must be some set up issue in my networking - but I can surf the internet and I can telnet directly to my ISPs smtp server and successfully send an email.

    Anyone got any ideas. I am not particularly bothered with how I get it to work - I just want to be able to use a shell script to send an email (with binary attachments) using my isp efficiently (it has to work quickly as it needs to send many images, before the power gets switched off - so no invoking a big interpreter with a long start up time please).

    Ta

    eccythump

  2. #2
    Junior Member
    Join Date
    Apr 2005
    Posts
    3
    Ahh solved it for when using smail:

    My problem was, indeed, in my network setup. When I originally set up the network (using netcardconfig) I foolishly gave the IP address of the router as both my gateway and DNS server (I think this was how it wanted it in Windows.....). This made things fail when it was trying to resolve some email addresses. Popping in the IP addresses of the DNS servers as given by my ISP helped.

    Then it was simply (OK - it took me a few tries with the wrong stuff too) using smailconfig --force, option 3, and specifying my email address name (not the bit before the @) as the visible mail name of my system and then the host smtp server next - and then things started working.

    Now I am not saying this is 100% correct - but the mail gets through.

    Hope that helps anyone in a similar position.

    eccythump

Similar Threads

  1. Replies: 2
    Last Post: 12-31-2005, 02:34 PM
  2. Replies: 1
    Last Post: 07-04-2005, 01:41 AM
  3. Internet works but unable to send email!
    By sourabh in forum Networking
    Replies: 0
    Last Post: 04-18-2005, 07:55 AM
  4. Net Send?
    By Nightmare in forum MS Windows & New to Linux
    Replies: 4
    Last Post: 02-26-2005, 06:35 PM
  5. Send in your screenshots!
    By eadz in forum The Lounge
    Replies: 3
    Last Post: 07-02-2003, 05:31 AM

Posting Permissions

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


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$49.99



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO picture

Dell Poweredge R730xd 12LFF 2*2660v4 4*1Gbe h730 2x 750W Server CTO

$488.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Core | HBA330 | No RAM or HDD

$149.99



Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server picture

Dell EMC VxRail E560F 10-SFF 2*Gold 6230R 2.1GHz No RAM HBA330 iDrac Ent Server

$349.99