E-mail problems.
Hi all,
I recently had problems whit retrieving e-mail messages from linux system. I
tried to configure everything better, and I have installed a new MTA, which is
Exim. I configured it, and I can send messages. But there is another problem:
When my messages are sent, the sender is not my real username. I'm
rygar@libero.it and when I send a message whit the sendmail command, the
sender is root@libero.it .
How can I modify the sender output?
This is the output of a message sent to myself from linux:
Return-Path: <root@libero.it>
Received: from smtp1.libero.it (193.70.192.51) by mule2.libero.it; 12 Dec 1999
12:20:53 +0100
Received: from rygar (151.21.12.132) by smtp1.libero.it; 12 Dec 1999 12:20:49
+0100
Received: from root by rygar with local (Exim 2.05 #1)
id 11x72N-000040-00
for rygar@libero.it; Sun, 12 Dec 1999 12:19:37 +0100
Message-Id: <E11x72N-000040-00@rygar>
From: root <root@libero.it>
To: rygar@libero.it
Date: Sun, 12 Dec 1999 12:19:37 +0100
Prova.
This is my /etc/exim.conf file:
# Exim.conf file, configurato da Roberto Suggi Liverani
exim_user = root
qualify_domain = libero.it
qualify_recipient = rygar
host_lookup_nets = 0.0.0.0/0
local_domains = "localhost:localhost.localdomain"
local_domains_include_host = true
log_level = 6
relay_domains_include_local_mx = true
sender_host_accept_relay = *
sender_unqualified_hosts = localhost
spool_directory = /var/spool/exim
strip_excess_angle_brackets = true
strip_trailing_dot = true
trusted_users = root
end
local_delivery:
driver = appendfile
file = /var/mail/${local_part}
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
address_directory:
driver = appendfile
no_from_hack
prefix = ""
suffix = ""
address_reply:
driver = autoreply
remote_smtp:
driver = smtp
# command_timeout = 1m
# connect_timeout = 10 s
end
system_aliases:
driver = aliasfile
file = /etc/aliases
search_type = lsearch
user = root
userforward:
driver = forwardfile
file = .forward
no_verify
check_ancestor
filter
localuser:
driver = localuser
transport = local_delivery
end
lookuphost:
driver = lookuphost
transport = remote_smtp
literal:
driver = ipliteral
transport = remote_smtp
end
* * F,2h,15m; G,16h,2h,1.5; F,4d,8h
end
end
Can you tell me which parameter I have to modify in order to make the sender
-> rygar@libero.it
Well, there are other files that can be useful to understand better my
situations:
this is my /etc/aliases file:
# This is the aliases file - it says who gets mail for whom.
# It was originally generated by `eximconfig', part of the exim package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by eximconfig at Tue Dec 7 15:52:43 CET 1999
# See exim info section for details of the things that can be configured here.
postmaster: root
root: root
daemon: root
bin: root
sys: root
sync: root
games: root
man: root
lp: root
mail: root
news: root
uucp: root
proxy: root
majordom: root
postgres: root
backup: root
msql: root
operator: root
list: root
irc: root
gnats: root
alias: root
qmaild: root
qmails: root
qmailr: root
qmailq: root
qmaill: root
qmailp: root
MAILER-DAEMON: postmaster
abuse: postmaster
This my /etc/passwd file:
root:x:0:0:root:/root:/bin/bash
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
games:x:5:100:games:/usr/games:/bin/sh
man:x:6:100:man:/var/catman:/bin/sh
lp:x:7:7:lp:/var/spool/lpd:/bin/sh
mail:x:8:8:mail:/var/spool/mail:/bin/sh
news:x:9:9:news:/var/spool/news:/bin/sh
uucp:x:10:10:uucp:/var/spool/uucp:/bin/sh
proxy:x:13:13:proxy:/bin:/bin/sh
majordom:x:30:31:Majordomo:/usr/lib/majordomo:/bin/sh
postgres:x:31:32:postgres:/var/postgres:/bin/sh
www-data:x:33:33:www-data:/var/www:/bin/sh
backup:x:34:34:backup:/var/backups:/bin/sh
msql:x:36:36:Mini SQL Database Manager:/var/lib/msql:/bin/sh
operator:x:37:37:Operator:/var:/bin/sh
list:x:38:38:SmartList:/var/list:/bin/sh
irc:x:39:39:ircd:/var:/bin/sh
gnats:x:41:41:Gnats Bug-Reporting System
(admin):/var/lib/gnats/gnats-db:/bin/sh
alias:x:70:65534:qmail alias:/var/qmail/alias:/bin/sh
qmaild:x:71:65534:qmail daemon:/var/qmail:/bin/sh
qmails:x:72:70:qmail send:/var/qmail:/bin/sh
qmailr:x:73:70:qmail remote:/var/qmail:/bin/sh
qmailq:x:74:70:qmail queue:/var/qmail:/bin/sh
qmaill:x:75:65534:qmail log:/var/qmail:/bin/sh
qmailp:x:76:65534:qmail pw:/var/qmail:/bin/sh
nobody:x:65534:65534:nobody:/home:/bin/sh
And finally, there is my /etc/profile file:
# /etc/profile: system-wide .profile file for bash(1).
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
PS1="\\$ "
export PATH PS1
umask 002
eval `dircolors`
alias ls='ls --color=auto -al';
alias ll='ls -l';
alias dir='ls --color=auto --format=vertical';
alias vdir='ls --color=auto --format=long';
alias ols='/bin/ls';
MAIL="/var/mail/$USER"
export MAIL
Ok, this is my problem whit exim.
But I have another problem whit fetchmail: I can't read my e-mail messages.
When I type the command fetchamail -v, I see that everything is fine, and it
retrieves messages from the pop server, but I can't read them anywhere! I
can't understand where it saves them!
This is my .fetchmailrc file:
poll popmail.libero.it
protocol POP3
username rygar@libero.it, password *, is rygar
smtphost mail.libero.it
keep
In the dmesg my system is root@rygar.
This is my bash prompt: rygar#
Well I can't understand in which mail box, fetchmail saves my messages!
This is the output of fetchmail --version command:
This is fetchmail release 4.6.4
Linux rygar 2.0.36 #1 Tue Sep 7 16:35:44 CEST 1999 m68k unknown
Taking options from command line and /root/.fetchmailrc
Idfile is /root/.fetchids
Fetchmail will forward misaddressed multidrop messages to postmaster.
Options for retrieving from rygar@libero.it@popmail.libero.it:
True name of server is popmail.libero.it.
Protocol is POP3.
Server nonresponse timeout is 300 seconds (default).
Default mailbox selected.
Only new messages will be retrieved (--all off).
Fetched messages will be kept on the server (--keep on).
Old messages will not be flushed before message retrieval (--flush off).
Rewrite of server-local addresses is enabled (--norewrite off).
Carriage-return stripping is disabled (stripcr off).
Carriage-return forcing is disabled (forcecr off).
Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
MIME decoding is disabled (mimedecode off).
Nonempty Status lines will be kept (dropstatus off)
Messages will be SMTP-forwarded to: mail.libero.it
Recognized listener spam block responses are: 571 550 501
Single-drop mode: 1 local name(s) recognized.
No UIDs saved from this host.
This all I can tell you.
Can you please help me!?
Thank you for your collaboration,
Roberto.
Reply to: