XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> local mails with mailx failing - empty Return Path

Reply to this topicStart new topicStart Poll

> local mails with mailx failing - empty Return Path
mikebremford
Posted: Mar 18 2004, 11:18 AM
Quote Post


Newbie
*

Group: Members
Posts: 1
Member No.: 995
Joined: 18-March 04



Hi all

I'm running xmail 1.17 and retrieving mail using fetchmail 6.2.0. The problem is when sending local mail using /bin/mail or just directly into sendmail.xmail, the mail is sent correctly but fetchmail is refusing to download it because the "Return-Path" header is empty.

For example

# echo test | /bin/mail mike@mydomain.com

results in

Return-Path: <>
Delivered-To: mike@mydomain.com
Received: from /spool/local
by big.faceless.org with [XMail 1.17 (Linux/Ix86) LMAIL Server]
for <mike@big.faceless.org> from <>;
Thu, 18 Mar 2004 05:13:04 -0500
To: mike@mydomain.com
From: <>
Date: Thu, 18 Mar 2004 05:13:02 -0500

Any ideas how I can set the from address and return path? Here's my "server.tab"

"RootDomain" "big.faceless.org"
"SmtpServerDomain" "big.faceless.org"
"PostMaster" "postmaster@big.faceless.org"
"RemoveSpoolErrors" "0"
"MaxMTAOps" "16"
"ReceivedHdrType" "0"
"FetchHdrTags" "+X-Deliver-To,+Received,To,Cc"
"SMTP-RDNSCheck" "0"
"CheckMailerDomain" "0"
"DefaultSmtpPerms" "MRVZ"


Cheers... Mike
PMEmail Poster
Top
atomant
Posted: Mar 18 2004, 11:35 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



QUOTE
sendmail

When building XMail, an executable called 'sendmail' is created. This is a replacement of the sendmail program used mostly on Unix systems; it uses the local mail delivery of XMail to send email generated onto the server machine. These sendmail options are supported (other options are simply ignored):

-f{mail from}
    Set the sender of the email.

-F{ext mail from}
    Set the extended sender of the email.

-t
    Extract recipients from the 'To:'/'Cc:'/'Bcc:' header tags.

The syntax is:

sendmail [-t] [-f...] [-F...] [--input-file fname] [--xinput-file fname]=>
  [--rcpt-file fname] [--] recipient ...

The message content is read from the standard input and must be RFC compliant.

The following parameters are XMail extensions meant to be used with mailing lists managers (using sendmail as a mail list exploder):

--input-file fname
    take the message from the specified file instead from stdin (RFC format).

--xinput-file fname
    take the message from the specified file instead from stdin (XMail format).

--rcpt-file fname
    add recipients listed inside the specified file (list exploder).

To be RFC compliant means that the message MUST have the format:

[Headers]
NewLine
Body

Suppose you have your message in the file 'msg.txt', you're 'xmailuser@smartdomain', and you want to send the message to 'user1@dom1' and 'user2@dom2'. The syntax is:

sendmail -fxmailuser@smartdomain user1@dom1 user2@dom2 < msg.txt

or

sendmail -fxmailuser@smartdomain --input-file msg.txt user1@dom1 user2@dom2


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Server | Next Newest »

Reply to this topicStart new topicStart Poll