You are not logged in.
Pages: 1
My question isnt hardly related to arch but to linux in general. How can I send mail from my machine to mine again. I have postfix running and use the following commands:
payl0ad ~ % hostname; whoami
payl0ad
tch
payl0ad ~ % echo hello | mail tch@payl0ad
payl0ad ~ % mail
No mail for tch
Offline
postconf -n, rc.conf, mail.log ... some infos would be nice.
1000
Offline
payl0ad /home/tch # postconf -n
alias_database = $alias_maps
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/man
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
payl0ad /home/tch #
payl0ad /home/tch # cat /etc/rc.conf
#
# /etc/rc.conf - Main Configuration for Arch Linux
#
#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="Canada/Pacific"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"
#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
# - prefix a module with a ! to blacklist it
#
MODULES=(8139too mii nvidia fuse)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"
#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="payl0ad"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
# - prefix an entry in INTERFACES with a ! to disable it
# - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.1.34 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo eth0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
# - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.1.1"
ROUTES=(gateway)
#
# Enable these network profiles at boot-up. These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
# - set to 'menu' to present a menu during boot-up (dialog package required)
# - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)
#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
# - prefix a daemon with a ! to disable it
# - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond !httpd !mysqld alsa privoxy tor !sshd postfix)
# End of file
payl0ad /home/tch #
payl0ad /home/tch # tail /var/log/mail.log
Oct 8 04:38:04 payl0ad postfix/smtp[5874]: connect to payl0ad.ath.cx[85.135.247.156]: Connection refused (port 25)
Oct 8 04:38:04 payl0ad postfix/smtp[5873]: 6E4D4589EE: to=<tch@payl0ad.ath.cx>, relay=none, delay=168428, delays=168427/0.13/0.42/0, dsn=4.4.1, status=deferred (connect to payl0ad.ath.cx[85.135.247.156]: Connection refused)
Oct 8 04:38:04 payl0ad postfix/smtp[5874]: 671DA58AB6: to=<tch@payl0ad.ath.cx>, relay=none, delay=78382, delays=78382/0.14/0.42/0, dsn=4.4.1, status=deferred (connect to payl0ad.ath.cx[85.135.247.156]: Connection refused)
Oct 8 04:38:04 payl0ad postfix/pickup[5869]: DCE6658AC0: uid=1000 from=<tch>
Oct 8 04:38:04 payl0ad postfix/cleanup[5870]: DCE6658AC0: message-id=<20071008113804.DCE6658AC0@payl0ad.localdomain>
Oct 8 04:38:04 payl0ad postfix/qmgr[5868]: DCE6658AC0: from=<tch@payl0ad.localdomain>, size=289, nrcpt=1 (queue active)
Oct 8 04:38:04 payl0ad postfix/local[5872]: DCE6658AC0: to=<tch@payl0ad.localdomain>, relay=local, delay=283, delays=283/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: local: fatal: execvp /tmp/script: No such file or directory )
Oct 8 04:38:30 payl0ad postfix/pickup[5869]: 6504658AC2: uid=0 from=<root>
Oct 8 04:38:30 payl0ad postfix/cleanup[5870]: 6504658AC2: message-id=<20071008113830.6504658AC2@payl0ad.localdomain>
Oct 8 04:38:30 payl0ad postfix/qmgr[5868]: 6504658AC2: from=<root@payl0ad.localdomain>, size=298, nrcpt=1 (queue active)
payl0ad /home/tch #
Offline
netstat -tl | grep smtp
I don't think postfix is listening on your adsl ip-address by default. Also, make sure mydestination in main.cf contains payl0ad.ath.cx.
1000
Offline
Pages: 1