prxmail

package module
v0.0.0-...-dacad7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

prxmail

Very simple command-line smtp email sender. Mainly used to proxy email via postfix alias.

Install

  1. Clone git repository.
$ git clone https://github.com/srtkkou/prxmail.git
  1. Build prxmail.exe using task command.
$ task build
  1. Copy prxmail.exe and prxmail.toml to user home direcotry.
$ cp prxmail.exe /home/user/
$ cp prxmail.toml.sample /home/user/prxmail.toml
  1. Edit prxmail.toml.

  2. Create .forward flie in user home directory.

$ touch /home/user/.forward
$ chmod 600 /home/user/.forward
  1. Add following line on .forward file.
"| /home/user/prxmail.exe -s SUBJECT -r SENDER_ADDRESS -t RECEIVER_ADDRESS > /dev/null 2>&1"

Note: Sending STDOUT and STDERR to /dev/null to avoid postfix from resending email on error.

  1. Restart postfix. (Maybe unnecessary.)
$ sudo newaliases
$ sudo systemctl restart postfix

Documentation

Overview

Copyright © 2024 srtkkou <srtkkou@outlook.jp>

Index

Constants

This section is empty.

Variables

View Source
var (
	// ターミナルの標準入力は受け付けない
	ErrMainTermStdin = errors.New("main.ErrMainTermStdin")
	// 標準入力読み込みエラー
	ErrMainStdinRead = errors.New("main.ErrMainStdinRead")
	// 本文が空
	ErrMainBodyEmpty = errors.New("main.ErrMainBodyEmpty")
)

Functions

func AppMain

func AppMain() (code int)

処理の実行

Types

This section is empty.

Directories

Path Synopsis
cmd
prxmail command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址