Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Postfix shows no Banner

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
reedbeat
n00b
n00b
Posts: 14
Joined: Sat May 08, 2004 7:58 am
Location: PurbachCity, Austria

Postfix shows no Banner

  • Quote

Post by reedbeat » Sat May 08, 2004 8:56 am

Hi!

Postfix doesnt show me a banner if i type telnet 127.0.0.1 25 .
Afterwards the built-up connection could not be closed by typing quit or ctrl+c.

Code: Select all

gentoo etc # /etc/init.d/postfix start
 * Starting postfix...                                                    [ ok ]
gentoo etc # telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.




Question:

postfix falsely emerged? use flags needed?
false dns settings?

I unmerged package sstmp cause it blocks postfix installation.

Code: Select all

gentoo etc # hostname -f
gentoo.home.test
$myhostname is set in main.cf >>> gentoo.home.test
smtpd_banner also activated.

Where can i find Logs? I could not find a directory /var/log/mail ??

thx
Reedbeat
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Sat May 08, 2004 10:05 am

If you use regular syslog then the mail log is in /var/log/maillog.
If Postfix is configured for it you may also have a /var/log/postfix, either file or directory.
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
reedbeat
n00b
n00b
Posts: 14
Joined: Sat May 08, 2004 7:58 am
Location: PurbachCity, Austria

  • Quote

Post by reedbeat » Sat May 08, 2004 11:20 am

Ther are no directories called /var/log/maillog nor /var/log/postfix ?

In the past i emerged syslog-ng because this is recommended by the installation instructions.


reedbeat




[/code]
Top
adaptr
Watchman
Watchman
User avatar
Posts: 6730
Joined: Sun Oct 06, 2002 1:28 pm
Location: Rotterdam, Netherlands

  • Quote

Post by adaptr » Sat May 08, 2004 11:30 am

/var/log/maillog is a file.

Just read all the logfiles you can find.
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Top
reedbeat
n00b
n00b
Posts: 14
Joined: Sat May 08, 2004 7:58 am
Location: PurbachCity, Austria

  • Quote

Post by reedbeat » Sat May 08, 2004 12:32 pm

Damn, no such file!

Code: Select all

gentoo log # ls -al
total 2768
drwxr-xr-x    7 root     root         4096 May  8 14:12 .
drwxr-xr-x   14 root     root         4096 Mar 27 19:00 ..
-rw-r--r--    1 root     root        37326 May  8 14:12 XFree86.0.log
-rw-r--r--    1 root     root        37326 May  8 13:20 XFree86.0.log.old
drwxr-xr-x    2 root     root         4096 Mar 14 17:58 apache2
drwxr-xr-x    2 root     root         4096 Mar 13 15:50 cups
-rw-rw----    1 portage  portage    183352 May  8 13:08 emerge.log
-rw-r--r--    1 root     root       292292 May  8 14:12 lastlog
-rw-------    1 root     root      1396220 May  8 14:13 messages
drwxr-xr-x    2 root     root         4096 Feb 19 02:19 news
drwsrws---    2 root     portage      8192 May  8 13:06 portage
drwxr-xr-x    2 root     root         4096 Mar 14 17:44 samba
-rw-r--r--    1 root     root        38844 Apr 25 20:02 scrollkeeper.log
-rw-rw-r--    1 root     utmp      1062912 May  8 14:13 wtmp
-rw-r--r--    1 root     root         1365 Mar 13 16:27 xdm.log
here the output from /var/log/messages, i think i found it:

Code: Select all

May  8 10:03:48 gentoo postfix/postfix-script: starting the Postfix mail system
May  8 10:03:48 gentoo postfix/master[1690]: daemon started -- version 2.0.16
May  8 10:04:01 gentoo postfix/smtpd[1695]: fatal: open database /etc/mail/aliases.db: No such file or directory
May  8 10:04:02 gentoo postfix/master[1690]: warning: process /usr/lib/postfix/smtpd pid 1695 exit status 1
May  8 10:04:02 gentoo postfix/master[1690]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
May  8 10:05:02 gentoo postfix/smtpd[1697]: fatal: open database /etc/mail/aliases.db: No such file or directory
May  8 10:05:03 gentoo postfix/master[1690]: warning: process /usr/lib/postfix/smtpd pid 1697 exit status 1
May  8 10:05:03 gentoo postfix/master[1690]: warning: /usr/lib/postfix/smtpd: bad command startup -- throttling
May  8 10:05:48 gentoo postfix/postfix-script: stopping the Postfix mail system
May  8 10:05:48 gentoo postfix/master[1690]: terminating on signal 15

/var/log/messages although hosts dmesg and other sylogs too , is this normal?



I have made a stage 3 installtion from cd-rom : install-x86-universal-2004.0.iso
pc is a duron 900.

nothing more installed than x,gnome,net-tools,oopenoffice,firefox,xmms,apache,postfix.

at the end of the installtion process there is a hint that we should edit the /etc/mail/aliases.
i did uncomment the root entry:


# Well-known aliases -- these should be filled in!
root: root <--- "root" inserted by me


i also let the system do an update of 3 config files /etc/postfix/ssl* with etc-update -3 after installation of postfix.

thats all i did.


reedbeat
Top
BCC
n00b
n00b
Posts: 51
Joined: Wed Apr 28, 2004 7:05 pm

  • Quote

Post by BCC » Sat May 08, 2004 12:48 pm

after editing /etc/mail/aliases , did you start the following command ?

Code: Select all

newaliases
Top
reedbeat
n00b
n00b
Posts: 14
Joined: Sat May 08, 2004 7:58 am
Location: PurbachCity, Austria

  • Quote

Post by reedbeat » Sat May 08, 2004 12:51 pm

That was it!

Typed in newaliases and fired up telnet:

It works! i should read more carefully... :oops:

Code: Select all

gentoo log # telnet 127.0.0.1 25
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
220 gentoo.home.test ESMTP Postfix
helo test
250 gentoo.home.test
quit
221 Bye
Connection closed by foreign host.
gentoo log #

Thanks a lot!!!!!

reedbeat
Top
Post Reply

7 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic