Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux HostsFree MagazinesJobs
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Servers
Reload this Page postfix sending but not recieving
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Servers Anything server related, Apache, MySQL, Samba, server security, sendmail, exim, etc

Reply
 
Thread Tools Display Modes
Old 06-11-2008   #21 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
centos might not split up the log file then. how about
Code:
tail /var/log/mail.log
if that still doesn't work then try
Code:
ls /var/log/mail*
and see what files you do have. I didn't see any real problems with your main.cf is why I want to see logs.
jledhead is offline   Reply With Quote
Old 06-11-2008   #22 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 24
Code:
# tail /var/log/mail.log
tail: cannot open `/var/log/mail.log' for reading: No such file or directory
[root@chromacars postfix]# ls /var/log/mail*
/var/log/maillog  /var/log/maillog.1  /var/log/maillog.2

/var/log/mail:
statistics
raulb is offline   Reply With Quote
Old 06-11-2008   #23 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 24
Code:
# tail /var/log/maillog
Jun 11 13:11:57 chromacars sendmail[29351]: alias database /etc/aliases rebuilt by raul
Jun 11 13:11:57 chromacars sendmail[29351]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Jun 11 13:11:57 chromacars postfix[29352]: fatal: chdir(/usr/libexec/postfix inet_interfaces = all inet_interfaces = localhost): No such file or directory
Jun 11 13:13:12 chromacars postfix[29400]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 11 13:13:13 chromacars sendmail[29402]: alias database /etc/aliases rebuilt by raul
Jun 11 13:13:13 chromacars sendmail[29402]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Jun 11 13:13:13 chromacars postfix[29403]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 11 14:00:47 chromacars sendmail[29812]: alias database /etc/aliases rebuilt by raul
Jun 11 14:00:47 chromacars sendmail[29812]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
Jun 11 14:00:47 chromacars postfix[29813]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
raulb is offline   Reply With Quote
Old 06-11-2008   #24 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
is sendmail still installed?

Code:
rpm -e sendmail
I think
jledhead is offline   Reply With Quote
Old 06-12-2008   #25 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 24
Code:
rpm -e sendmail
error: Failed dependencies:
        sendmail = 8.13.8-2.el5 is needed by (installed) sendmail-cf-8.13.8-2.el5.i386
Thats wierd I swore I had it installed or am I wrong about this?
I just checked in webmin and it says the sendmail server is running.
I also did a yum update for sendmail and I have the latest updates

Code:
# yum install sendmail
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
extras                    100% |=========================| 1.1 kB    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do
raulb is offline   Reply With Quote
Old 06-12-2008   #26 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 24
Now webmin seems to think something is wrong with the mapping and told me to fix this

Code:
#
#  Aliases in this file will NOT be expanded in the header from
#  Mail, but WILL be visible over networks or from /bin/mail.
#
#	>>>>>>>>>>	The program "newaliases" must be run after
#	>> NOTE >>	this file is updated for any changes to
#	>>>>>>>>>>	show through to sendmail.
#

# Basic system aliases -- these MUST be present.
mailer-daemon:	postmaster
postmaster:	root

# General redirections for pseudo accounts.
bin:		root
daemon:		root
adm:		root
lp:		root
sync:		root
shutdown:	root
halt:		root
mail:		root
news:		root
uucp:		root
operator:	root
games:		root
gopher:		root
ftp:		root
nobody:		root
radiusd:	root
nut:		root
dbus:		root
vcsa:		root
canna:		root
wnn:		root
rpm:		root
nscd:		root
pcap:		root
apache:		root
webalizer:	root
dovecot:	root
fax:		root
quagga:		root
radvd:		root
pvm:		root
amanda:		root
privoxy:	root
ident:		root
named:		root
xfs:		root
gdm:		root
mailnull:	root
postgres:	root
sshd:		root
smmsp:		root
postfix:	root
netdump:	root
ldap:		root
squid:		root
ntp:		root
mysql:		root
desktop:	root
rpcuser:	root
rpc:		root
nfsnobody:	root

ingres:		root
system:		root
toor:		root
manager:	root
dumper:		root
abuse:		root

newsadm:	news
newsadmin:	news
usenet:		news
ftpadm:		ftp
ftpadmin:	ftp
ftp-adm:	ftp
ftp-admin:	ftp
www:		webmaster
webmaster:	root
noc:		root
security:	root
hostmaster:	root
info:		postmaster
marketing:	postmaster
sales:		postmaster
support:	postmaster


# trap decode to catch security attacks
decode:		root

# Person who should get root's mail
#root:		marc
raulb is offline   Reply With Quote
Old 06-12-2008   #27 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
rpm -e means uninstall

sendmail=MTA
postfix=MTA

your don't want both. so if you are going to use postfix, uninstall sendmail.

Code:
/etc/init.d/sendmail stop

rpm -e sendmail-cf
rpm -e sendmail

/etc/init.d/postfix stop
/etc/init.d/postfix start

tail /var/log/maillog
jledhead is offline   Reply With Quote
Old 06-12-2008   #28 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 24
ok i stoped sendmail but I cant get postfix to start or stop now

Code:
# /etc/init.d/postfix stop
Shutting down postfix:                                     [FAILED]
[root@chromacars raul]# /etc/init.d/postfix start
Starting postfix:                                          [FAILED]
[root@chromacars raul]# tail /var/log/maillog
Jun 12 04:02:03 chromacars sendmail[4972]: m5C822Wf004972: from=root, size=1956, class=0, nrcpts=1, msgid=<200806120802.m5C822Wf004972@chromacars.net>, relay=root@localhost
Jun 12 04:02:03 chromacars sendmail[5220]: m5C823gZ005220: from=<root@chromacars.net>, size=2208, class=0, nrcpts=1, msgid=<200806120802.m5C822Wf004972@chromacars.net>, proto=ESMTP, daemon=MTA, relay=chromacars.net [127.0.0.1]
Jun 12 04:02:03 chromacars sendmail[4972]: m5C822Wf004972: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31956, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m5C823gZ005220 Message accepted for delivery)
Jun 12 04:02:03 chromacars sendmail[5223]: m5C823gZ005220: to=<root@chromacars.net>, ctladdr=<root@chromacars.net> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32414, dsn=2.0.0, stat=Sent
Jun 12 11:11:03 chromacars postfix[9229]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 12 11:11:04 chromacars postfix[9231]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 12 11:13:49 chromacars postfix[9443]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 12 11:13:50 chromacars postfix[9445]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 12 13:31:28 chromacars postfix[10677]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
Jun 12 13:31:37 chromacars postfix[10685]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
[root@chromacars raul]#
raulb is offline   Reply With Quote
Old 06-12-2008   #29 (permalink)
Linux Engineer
 
jledhead's Avatar
 
Join Date: Oct 2004
Location: North Carolina
Posts: 805
this sounds like your install is messed up, how did you install postfix?

I would suggest
Code:
rpm -e postfix
rm -rf /etc/postfix
OR to be safe
mv /etc/postfix /etc/postfix.backup
it should also remove startup script but
Code:
rm /etc/init.d/postfix
probably couldn't hurt. then
Code:
yum install postfix
and then try to start it up again
jledhead is offline   Reply With Quote
Old 06-13-2008   #30 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 24
I had used webmin to install it i believe
when i did a

# yum install postfix
Loading "installonlyn" plugin
Setting up Install Process
Setting up repositories
extras 100% |=========================| 1.1 kB 00:00
updates 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 951 B 00:00
Reading repository metadata in from local files
Parsing package install arguments
Nothing to do



Thats wierd it wont let me download or update it. I did a general yum update and got the same thing.
raulb is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
 

Free Magazines
Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe
Systems Management News, the newspaper for IT systems administration and data center managers!
Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe
The Enterprise Newsweekly
eWeek is the essential technology information source for builders of e-business.
subscribe
Oracle Magazine
Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe
Total Telecom
Total Telecom is "The Economist of the communications industry".
subscribe
More free magazines »



All times are GMT. The time now is 12:34 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.2.0