LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-06-2008, 07:52 AM   #1
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Rep: Reputation: 32
Removed Citadel and installed Postfix, Postfix acting funny??


Hi, I've just removed the Citadel groupware suite from my server as it taking up too many resources since the server is quite old and slow and runs many other things.

Server is Debian Etc based!

I wanted to install Postfix as I don't like Exim and just needed something for the odd local and network delivery and reciept.

Apt usually is pretty good at handling dependencies and configuration issues, however this time I really don't know what's going on:

Code:
Oct  6 15:45:43 gx110 postfix/local[21221]: DAA45AE605: to=<or@gx110.optiplex-networks.com>, orig_to=<kayasaman>, relay=local, delay=0.22, delays=0.06/0.14/0/0.02, dsn=5.1.1, status=bounced (unknown user: "or")
Oct  6 15:45:43 gx110 postfix/local[21223]: DAA45AE605: to=<save@gx110.optiplex-networks.com>, orig_to=<kayasaman>, relay=local, delay=0.22, delays=0.06/0.14/0/0.02, dsn=5.1.1, status=bounced (unknown user: "save")
Oct  6 15:45:43 gx110 postfix/local[21218]: DAA45AE605: to=<then@gx110.optiplex-networks.com>, orig_to=<kayasaman>, relay=local, delay=0.22, delays=0.06/0.15/0/0.01, dsn=5.1.1, status=bounced (unknown user: "then")
Oct  6 15:45:43 gx110 postfix/local[21226]: DAA45AE605: to=<Yes@gx110.optiplex-networks.com>, orig_to=<kayasaman>, relay=local, delay=0.23, delays=0.06/0.15/0/0.01, dsn=5.1.1, status=bounced (unknown user: "yes")
Oct  6 15:45:43 gx110 postfix/local[21227]: EBC1CAE630: to=<kayasaman@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.18, delays=0.03/0.03/0/0.12, dsn=5.1.3, status=bounced (bad recipient address syntax: logcheck@)
Oct  6 15:45:43 gx110 postfix/cleanup[21216]: 084EDAE619: message-id=<20081006124542.EBC1CAE630@gx110.optiplex-networks.com>
Oct  6 15:45:43 gx110 postfix/qmgr[15761]: 084EDAE619: from=<>, size=2476, nrcpt=25 (queue active)
Oct  6 15:45:43 gx110 postfix/local[21227]: EBC1CAE630: to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.22, delays=0.03/0.03/0/0.16, dsn=2.0.0, status=sent (forwarded as 084EDAE619)
Oct  6 15:45:43 gx110 postfix/qmgr[15761]: EBC1CAE630: removed
Oct  6 15:45:43 gx110 postfix/local[21221]: 084EDAE619: to=<$h_from:contains@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.17, delays=0.15/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "$h_from:contains")
Oct  6 15:45:43 gx110 postfix/local[21223]: 084EDAE619: to=<$h_Subject:contains@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.17, delays=0.15/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "$h_subject:contains")
Oct  6 15:45:43 gx110 postfix/local[21218]: 084EDAE619: to=<$h_X-Spam-Flag:CONTAINS@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.18, delays=0.15/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "$h_x-spam-flag:contains")
Oct  6 15:45:43 gx110 postfix/local[21226]: 084EDAE619: to=<$h_X-Spam-Status:CONTAINS@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.18, delays=0.15/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "$h_x-spam-status:contains")
Oct  6 15:45:43 gx110 postfix/local[21227]: 084EDAE619: to=<$home/Maildir/.Spam/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.19, delays=0.15/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "$home/maildir/.spam/")
Oct  6 15:45:43 gx110 postfix/local[21221]: 084EDAE619: to=<cacti@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.19, delays=0.15/0.02/0/0.02, dsn=5.1.1, status=bounced (unknown user: "cacti")
Oct  6 15:45:43 gx110 postfix/local[21223]: 084EDAE619: to=<Cron@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.19, delays=0.15/0.02/0/0.02, dsn=5.1.1, status=bounced (unknown user: "cron")
Oct  6 15:45:43 gx110 postfix/local[21218]: 084EDAE619: to=<debian@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.2, delays=0.15/0.03/0/0.02, dsn=5.1.1, status=bounced (unknown user: "debian")Oct  6 15:45:43 gx110 postfix/local[21226]: 084EDAE619: to=<ebay@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.2, delays=0.15/0.03/0/0.02, dsn=5.1.1, status=bounced (unknown user: "ebay")
Oct  6 15:45:43 gx110 postfix/local[21227]: 084EDAE619: to=<endif@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.21, delays=0.15/0.04/0/0.02, dsn=5.1.1, status=bounced (unknown user: "endif")
Oct  6 15:45:43 gx110 postfix/local[21227]: 084EDAE619: to=<mail@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.23, delays=0.15/0.06/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Oct  6 15:45:43 gx110 postfix/local[21221]: 084EDAE619: to=<error_message@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.23, delays=0.15/0.04/0/0.04, dsn=5.1.1, status=bounced (unknown user: "error_message")
Oct  6 15:45:43 gx110 postfix/local[21218]: 084EDAE619: to=<howtoforge@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.24, delays=0.15/0.05/0/0.04, dsn=5.1.1, status=bounced (unknown user: "howtoforge")
Oct  6 15:45:43 gx110 postfix/local[21226]: 084EDAE619: to=<if@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.24, delays=0.15/0.06/0/0.04, dsn=5.1.1, status=bounced (unknown user: "if")
Oct  6 15:45:43 gx110 postfix/local[21227]: 084EDAE619: to=<Maildir/.Cacti/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.25, delays=0.15/0.08/0/0.01, dsn=5.1.1, status=bounced (unknown user: "maildir/.cacti/")
Oct  6 15:45:43 gx110 postfix/local[21221]: 084EDAE619: to=<Maildir/.Cron/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.25, delays=0.15/0.09/0/0.02, dsn=5.1.1, status=bounced (unknown user: "maildir/.cron/")
Oct  6 15:45:43 gx110 postfix/local[21218]: 084EDAE619: to=<Maildir/.Debian/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.25, delays=0.15/0.09/0/0.02, dsn=5.1.1, status=bounced (unknown user: "maildir/.debian/")
Oct  6 15:45:43 gx110 postfix/local[21226]: 084EDAE619: to=<Maildir/.Ebay/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.26, delays=0.15/0.09/0/0.02, dsn=5.1.1, status=bounced (unknown user: "maildir/.ebay/")
Oct  6 15:45:43 gx110 postfix/local[21227]: 084EDAE619: to=<Maildir/.Howtoforge/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.26, delays=0.15/0.1/0/0.02, dsn=5.1.1, status=bounced (unknown user: "maildir/.howtoforge/")
Oct  6 15:45:43 gx110 postfix/local[21221]: 084EDAE619: to=<Maildir/.Logcheck/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.27, delays=0.15/0.1/0/0.02, dsn=5.1.1, status=bounced (unknown user: "maildir/.logcheck/")
Oct  6 15:45:43 gx110 postfix/local[21218]: 084EDAE619: to=<or@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.27, delays=0.15/0.11/0/0.02, dsn=5.1.1, status=bounced (unknown user: "or")
Oct  6 15:45:43 gx110 postfix/local[21226]: 084EDAE619: to=<save@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.28, delays=0.15/0.11/0/0.02, dsn=5.1.1, status=bounced (unknown user: "save")
Oct  6 15:45:43 gx110 postfix/local[21227]: 084EDAE619: to=<then@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.28, delays=0.15/0.12/0/0.02, dsn=5.1.1, status=bounced (unknown user: "then")
Oct  6 15:45:43 gx110 postfix/local[21221]: 084EDAE619: to=<Yes@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.28, delays=0.15/0.12/0/0.01, dsn=5.1.1, status=bounced (unknown user: "yes")
Oct  6 15:45:43 gx110 postfix/local[21225]: DAA45AE605: to=<$h_X-Spam-Flag:CONTAINS@gx110.optiplex-networks.com>, orig_to=<kayasaman>, relay=local, delay=0.93, delays=0.06/0.01/0/0.85, dsn=5.1.1, status=bounced (unknown user: "$h_x-spam-flag:contains")
Oct  6 15:45:43 gx110 postfix/local[21228]: DAA45AE605: to=<$h_Subject:contains@gx110.optiplex-networks.com>, orig_to=<kayasaman>, relay=local, delay=1, delays=0.06/0.01/0/0.97, dsn=5.1.1, status=bounced (unknown user: "$h_subject:contains")
Oct  6 15:45:43 gx110 postfix/cleanup[21216]: E4990AE634: message-id=<20081006124543.E4990AE634@gx110.optiplex-networks.com>
Oct  6 15:45:43 gx110 postfix/qmgr[15761]: E4990AE634: from=<>, size=9439, nrcpt=1 (queue active)
Oct  6 15:45:43 gx110 postfix/bounce[21224]: DAA45AE605: sender non-delivery notification: E4990AE634
Oct  6 15:45:43 gx110 postfix/qmgr[15761]: DAA45AE605: removed
Oct  6 15:45:43 gx110 postfix/local[21218]: E4990AE634: to=<kayasaman@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.04, delays=0.02/0/0/0.03, dsn=5.1.3, status=bounced (bad recipient address syntax: logcheck@)
Oct  6 15:45:43 gx110 postfix/cleanup[21216]: E9699AE605: message-id=<20081006124543.E4990AE634@gx110.optiplex-networks.com>
Oct  6 15:45:44 gx110 postfix/qmgr[15761]: E9699AE605: from=<>, size=9595, nrcpt=25 (queue active)
Oct  6 15:45:44 gx110 postfix/local[21218]: E4990AE634: to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.07, delays=0.02/0/0/0.06, dsn=2.0.0, status=sent (forwarded as E9699AE605)
Oct  6 15:45:44 gx110 postfix/qmgr[15761]: E4990AE634: removed
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<$h_Subject:contains@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.07, delays=0.05/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "$h_subject:contains")
Oct  6 15:45:44 gx110 postfix/local[21223]: 084EDAE619: to=<finish@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=1, delays=0.15/0.05/0/0.8, dsn=5.1.1, status=bounced (unknown user: "finish")
Oct  6 15:45:44 gx110 postfix/local[21228]: E9699AE605: to=<$home/Maildir/.Spam/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.09, delays=0.05/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "$home/maildir/.spam/")
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<debian@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.09, delays=0.05/0.03/0/0.02, dsn=5.1.1, status=bounced (unknown user: "debian")
Oct  6 15:45:44 gx110 postfix/qmgr[15761]: 084EDAE619: removed
Oct  6 15:45:44 gx110 postfix/local[21570]: E9699AE605: to=<Cron@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.09, delays=0.05/0.02/0/0.02, dsn=5.1.1, status=bounced (unknown user: "cron")
Oct  6 15:45:44 gx110 postfix/local[21223]: E9699AE605: to=<ebay@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.1, delays=0.05/0.03/0/0.02, dsn=5.1.1, status=bounced (unknown user: "ebay")
Oct  6 15:45:44 gx110 postfix/local[21228]: E9699AE605: to=<endif@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.1, delays=0.05/0.04/0/0.02, dsn=5.1.1, status=bounced (unknown user: "endif")
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<error_message@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.11, delays=0.05/0.04/0/0.02, dsn=5.1.1, status=bounced (unknown user: "error_message")
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<mail@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.12, delays=0.05/0.06/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Oct  6 15:45:44 gx110 postfix/local[21223]: E9699AE605: to=<howtoforge@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.12, delays=0.05/0.05/0/0.02, dsn=5.1.1, status=bounced (unknown user: "howtoforge")
Oct  6 15:45:44 gx110 postfix/local[21570]: E9699AE605: to=<finish@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.13, delays=0.05/0.05/0/0.03, dsn=5.1.1, status=bounced (unknown user: "finish")
Oct  6 15:45:44 gx110 postfix/local[21228]: E9699AE605: to=<if@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.13, delays=0.05/0.06/0/0.02, dsn=5.1.1, status=bounced (unknown user: "if")
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<Maildir/.Cacti/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.13, delays=0.05/0.07/0/0.01, dsn=5.1.1, status=bounced (unknown user: "maildir/.cacti/")
Oct  6 15:45:44 gx110 postfix/local[21223]: E9699AE605: to=<Maildir/.Cron/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.14, delays=0.05/0.07/0/0.01, dsn=5.1.1, status=bounced (unknown user: "maildir/.cron/")
Oct  6 15:45:44 gx110 postfix/local[21228]: E9699AE605: to=<Maildir/.Debian/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.14, delays=0.05/0.08/0/0.01, dsn=5.1.1, status=bounced (unknown user: "maildir/.debian/")
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<Maildir/.Howtoforge/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.14, delays=0.05/0.08/0/0.01, dsn=5.1.1, status=bounced (unknown user: "maildir/.howtoforge/")
Oct  6 15:45:44 gx110 postfix/local[21570]: E9699AE605: to=<Maildir/.Ebay/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.15, delays=0.05/0.08/0/0.02, dsn=5.1.1, status=bounced (unknown user: "maildir/.ebay/")
Oct  6 15:45:44 gx110 postfix/local[21223]: E9699AE605: to=<Maildir/.Logcheck/@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.15, delays=0.05/0.09/0/0.01, dsn=5.1.1, status=bounced (unknown user: "maildir/.logcheck/")
Oct  6 15:45:44 gx110 postfix/local[21228]: E9699AE605: to=<or@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.15, delays=0.05/0.09/0/0.01, dsn=5.1.1, status=bounced (unknown user: "or")
Oct  6 15:45:44 gx110 postfix/local[21227]: E9699AE605: to=<save@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.16, delays=0.05/0.1/0/0.01, dsn=5.1.1, status=bounced (unknown user: "save")
Oct  6 15:45:44 gx110 postfix/local[21223]: E9699AE605: to=<then@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.16, delays=0.05/0.1/0/0.01, dsn=5.1.1, status=bounced (unknown user: "then")
Oct  6 15:45:44 gx110 postfix/local[21570]: E9699AE605: to=<Yes@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.16, delays=0.05/0.1/0/0.01, dsn=5.1.1, status=bounced (unknown user: "yes")
Oct  6 15:45:44 gx110 postfix/local[21221]: E9699AE605: to=<$h_X-Spam-Flag:CONTAINS@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.83, delays=0.05/0.01/0/0.77, dsn=5.1.1, status=bounced (unknown user: "$h_x-spam-flag:contains")
Oct  6 15:45:44 gx110 postfix/local[21225]: E9699AE605: to=<$h_X-Spam-Status:CONTAINS@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=0.99, delays=0.05/0.01/0/0.93, dsn=5.1.1, status=bounced (unknown user: "$h_x-spam-status:contains")
Oct  6 15:45:45 gx110 postfix/local[21226]: E9699AE605: to=<$h_from:contains@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=1.1, delays=0.05/0.01/0/1, dsn=5.1.1, status=bounced (unknown user: "$h_from:contains")
Oct  6 15:45:45 gx110 postfix/local[21218]: E9699AE605: to=<cacti@gx110.optiplex-networks.com>, orig_to=<root@gx110.optiplex-networks.com>, relay=local, delay=1.2, delays=0.05/0.02/0/1.2, dsn=5.1.1, status=bounced (unknown user: "cacti")
Oct  6 15:45:45 gx110 postfix/qmgr[15761]: E9699AE605: removed
is a sample of my mail.log file after trying to send a local mail from root to me <localuser> and as can be seen it's coming up with some really wierd user names; some of which are running services?

It seems like it got them from my old Maildir before using Citadel, I was using Exim.

I really don't know how to get this mess sorted. No matter what I tried to do Postfix won't send a mail to my user account, even if I'm logged in as myself.

I have checked both master and main.cf files and compared them to my main mail server and they are almost identical if not the same.....

Can anyone help me at all???

I would be so greatful!
 
Old 10-07-2008, 01:16 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
You know the drill - output from postconf -n please.
 
Old 10-07-2008, 03:57 AM   #3
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Sorry Mr C. didn't know that one! Thanks for pointing it out to me

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir/
inet_interfaces = all
inet_protocols = all
mailbox_size_limit = 0
mydestination = gx110.optiplex-networks.com, localhost.optiplex-networks.com, , localhost
myhostname = gx110.optiplex-networks.com
mynetworks = 192.168.1.0/24 127.0.0.0/8
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
 
Old 10-07-2008, 04:13 AM   #4
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
How did you try to send the mail? It looks to me like the contents of the message have been converted to recipients.
 
Old 10-07-2008, 10:36 AM   #5
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
I used the terminal 'mail' program which usually works; on my other Debian server with the same configuration it works fine??

Code:
#mail -s "test" kayasaman
mail
CC:
<ctrl d>
I seem to now have a new mail folders created in /var/mail:

Code:
OptiplexGX110:/var/mail# ls
kayasaman  mail  Maildir  root  smmsp  user
most of those shouldn't be there as I'm using local Maildirs in $Maildir or ~Maildir say; upon scanning one of the emails this is the output:

Code:
Return-Path: <smmsp@gx110.optiplex-networks.com>
X-Original-To: root
Delivered-To: mail@gx110.optiplex-networks.com
Received: by gx110.optiplex-networks.com (Postfix)
        id 372E6AE6A5; Tue,  7 Oct 2008 18:20:03 +0300 (EEST)
Delivered-To: root@gx110.optiplex-networks.com
Received: by gx110.optiplex-networks.com (Postfix, from userid 126)
        id 281BFAE6A3; Tue,  7 Oct 2008 18:20:02 +0300 (EEST)
From: root@gx110.optiplex-networks.com (Cron Daemon)
To: root@gx110.optiplex-networks.com
Subject: Cron <smmsp@OptiplexGX110> test -x /etc/init.d/sendmail && /usr/share/sendmail/sendmail cron-msp
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/var/lib/sendmail>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=smmsp>
Message-Id: <20081007152003.281BFAE6A3@gx110.optiplex-networks.com>
Date: Tue,  7 Oct 2008 18:20:02 +0300 (EEST)

/usr/share/sendmail/sendmail: line 826: /usr/sbin/sendmail-msp: No such file or directory
I changed the master.cf file slightly to make it exactly identical to my other server in the mean time also:

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
home_mailbox = Maildir
inet_interfaces = all
mailbox_size_limit = 0
mydestination = gx110.optiplex-networks.com, localhost.optiplex-networks.com, localhost
myhostname = gx110.optiplex-networks.com
mynetworks = 192.168.1.0/24 127.0.0.1
myorigin = /etc/mailname
receive_override_options = no_address_mappings
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
Of course the Home Mailbox declartation should be Maildir/ however I figured since the server was sending mail to Maildir/.*** that Maildir without / would stop that and sure it did, as the above mail shows!

But this is still strange.
 
Old 10-07-2008, 03:24 PM   #6
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You need a trailing slash after Maildir, so
Code:
home_mailbox = Maildir/
Edit - just say the end of previous post - sorry. It does need the slash though.

It's the "/" that tells Postfix that it's a maildir format rather than mbox.

If you use home_mailbox = Maildir/ and no mail_spool_directory, the Maildirs should be created in the users' home directory (~/Maildir)

Last edited by billymayday; 10-07-2008 at 03:38 PM.
 
Old 10-07-2008, 03:35 PM   #7
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
I know, I realize that but the issues you saw before where due to me having the homedir as Maildir/?

I reverted back to Maildir/ just now; of course my working config has it in it but I'm just blindly testing things I guess since I don't know enough about Postfix to properly trouble shoot but still the output of a mail just sent is:

Code:
Return-Path: <>
X-Original-To: root@gx110.optiplex-networks.com
Delivered-To: mail@gx110.optiplex-networks.com
Received: by gx110.optiplex-networks.com (Postfix)
        id C8795AE698; Tue,  7 Oct 2008 23:29:30 +0300 (EEST)
Delivered-To: root@gx110.optiplex-networks.com
Received: by gx110.optiplex-networks.com (Postfix)
        id C3450AE6C3; Tue,  7 Oct 2008 23:29:30 +0300 (EEST)
Date: Tue,  7 Oct 2008 23:29:30 +0300 (EEST)
From: MAILER-DAEMON@gx110.optiplex-networks.com (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: root@gx110.optiplex-networks.com
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
        boundary="4DFD4AE698.1223411370/gx110.optiplex-networks.com"
Message-Id: <20081007202930.C3450AE6C3@gx110.optiplex-networks.com>

This is a MIME-encapsulated message.

--4DFD4AE698.1223411370/gx110.optiplex-networks.com
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host gx110.optiplex-networks.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<"$h_Subject:contains"@gx110.optiplex-networks.com> (expanded from
    <kayasaman>): unknown user: "$h_subject:contains"

<debian@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "debian"

<ebay@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "ebay"

<$home/Maildir/.Spam/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "$home/maildir/.spam/"

<cacti@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "cacti"

<endif@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "endif"

<error_message@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "error_message"

<finish@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "finish"

<howtoforge@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown
    user: "howtoforge"

<if@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "if"

<Maildir/.Cron/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "maildir/.cron/"

<Maildir/.Debian/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "maildir/.debian/"

<Maildir/.Ebay/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "maildir/.ebay/"

<Maildir/.Howtoforge/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "maildir/.howtoforge/"

<Maildir/.Logcheck/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "maildir/.logcheck/"

<or@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "or"

<save@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "save"

<then@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "then"

<Yes@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "yes"

<"$h_X-Spam-Status:CONTAINS"@gx110.optiplex-networks.com> (expanded from
    <kayasaman>): unknown user: "$h_x-spam-status:contains"

<"$h_X-Spam-Flag:CONTAINS"@gx110.optiplex-networks.com> (expanded from
    <kayasaman>): unknown user: "$h_x-spam-flag:contains"

<Cron@gx110.optiplex-networks.com> (expanded from <kayasaman>): unknown user:
    "cron"

<Maildir/.Cacti/@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "maildir/.cacti/"

<"$h_from:contains"@gx110.optiplex-networks.com> (expanded from <kayasaman>):
    unknown user: "$h_from:contains"

--4DFD4AE698.1223411370/gx110.optiplex-networks.com
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; gx110.optiplex-networks.com
X-Postfix-Queue-ID: 4DFD4AE698
X-Postfix-Sender: rfc822; root@gx110.optiplex-networks.com
Arrival-Date: Tue,  7 Oct 2008 23:29:29 +0300 (EEST)

Final-Recipient: rfc822; "$h_Subject:contains"@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "$h_subject:contains"

Final-Recipient: rfc822; debian@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "debian"

Final-Recipient: rfc822; ebay@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "ebay"

Final-Recipient: rfc822; $home/Maildir/.Spam/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "$home/maildir/.spam/"

Final-Recipient: rfc822; cacti@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "cacti"

Final-Recipient: rfc822; endif@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "endif"

Final-Recipient: rfc822; error_message@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "error_message"

Final-Recipient: rfc822; finish@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "finish"

Final-Recipient: rfc822; howtoforge@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "howtoforge"

Final-Recipient: rfc822; if@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "if"

Final-Recipient: rfc822; Maildir/.Cron/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "maildir/.cron/"

Final-Recipient: rfc822; Maildir/.Debian/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "maildir/.debian/"

Final-Recipient: rfc822; Maildir/.Ebay/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "maildir/.ebay/"

Final-Recipient: rfc822; Maildir/.Howtoforge/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "maildir/.howtoforge/"

Final-Recipient: rfc822; Maildir/.Logcheck/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "maildir/.logcheck/"

Final-Recipient: rfc822; or@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "or"

Final-Recipient: rfc822; save@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "save"

Final-Recipient: rfc822; then@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "then"

Final-Recipient: rfc822; Yes@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "yes"

Final-Recipient: rfc822; "$h_X-Spam-Status:CONTAINS"@gx110.optiplex-networks.comOriginal-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "$h_x-spam-status:contains"

Final-Recipient: rfc822; "$h_X-Spam-Flag:CONTAINS"@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "$h_x-spam-flag:contains"

Final-Recipient: rfc822; Cron@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "cron"

Final-Recipient: rfc822; Maildir/.Cacti/@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "maildir/.cacti/"

Final-Recipient: rfc822; "$h_from:contains"@gx110.optiplex-networks.com
Original-Recipient: rfc822; kayasaman
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "$h_from:contains"

--4DFD4AE698.1223411370/gx110.optiplex-networks.com
Content-Description: Undelivered Message
Content-Type: message/rfc822

Received: by gx110.optiplex-networks.com (Postfix)
        id 4DFD4AE698; Tue,  7 Oct 2008 23:29:29 +0300 (EEST)
Delivered-To: kayasaman@gx110.optiplex-networks.com
Received: by gx110.optiplex-networks.com (Postfix, from userid 0)
        id E009FAE6BB; Tue,  7 Oct 2008 23:29:28 +0300 (EEST)
To: kayasaman@gx110.optiplex-networks.com
Subject: test
Message-Id: <20081007202928.E009FAE6BB@gx110.optiplex-networks.com>
Date: Tue,  7 Oct 2008 23:29:28 +0300 (EEST)
From: root@gx110.optiplex-networks.com (root)

test

--4DFD4AE698.1223411370/gx110.optiplex-networks.com--
I'm totally lost as to why Postfix is thinking that each line before the @ is an address!

There must be some file or files somewhere which need editing to set this straight?

I just hope someone can identify what's going on so that we don't do another DNS config marathon hehe........ - uh
 
Old 10-07-2008, 03:50 PM   #8
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
kayasaman, I just had a little play sending myself some emails.

My current theory is that you sent an email to root and somehow cc'ed to a mail message as a list of recipients. Can't quite replicate it yet, but the logs fit.
 
Old 10-07-2008, 03:55 PM   #9
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
I was typing as you were.

Can you cut and paste the command you are using to send. What you have doesn't look quite right.

What is in /etc/aliases? Redo "newaliases"
 
Old 10-07-2008, 03:56 PM   #10
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Your postfix installation is botched:

Code:
/usr/share/sendmail/sendmail: line 826: /usr/sbin/sendmail-msp: No such file or directory
The mail command uses sendmail - without a working sendmail, you're going to have trouble.

Why do you have:

Code:
receive_override_options = no_address_mappings
This means virtual address rewriting and other rewriting forms won't occur. You probably want to remove that line.

Last edited by Mr. C.; 10-07-2008 at 04:33 PM. Reason: incorrectly indicated alias expansion is also disabled w/no_address_mappings
 
Old 10-07-2008, 04:05 PM   #11
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Doesn't receive_override_options = no_address_mappings only kill virtual alias mappings?

Mr C., what created the log message "(expanded from <kayasaman>)" do you know? I don't get that in my logs from aliases.
 
Old 10-07-2008, 04:29 PM   #12
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
Quote:
Your postfix installation is botched:
You can say that again!!!

billymayday the command used to send is as follows:

Code:
#mail -s "test" kayasaman
test
Cc:
ctrl D
Mr C. I don't quite know what that is I can't remember if I got it from online example or if it is part of the Debian Config by default, however since I don't use virtual mailboxes it should be ok I'm guessing.

billymayday, my aliases file:
Code:
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: kayasaman
logcheck: root
clamav: root
amavis: root
I will try re-installing sendmail, I think I remember that I might have downloaded the source code of sendmail-cf... something like that anyway which might have done this; however having said that Courier doesn't connect to my Maildir either, I don't know if that's tied in with sendmail also??
 
Old 10-07-2008, 04:32 PM   #13
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Oops, correct. no_address_mappings disables: canonical address mapping, virtual alias map expansion, address masquerading, and automatic BCC.

I don't know what caused the garbage alias expansion. Mail was sent to "kayasaman", which alias expanded to "or@gx110.optiplex-networks.com":

Code:
Oct  6 15:45:43 gx110 postfix/local[21221]: DAA45AE605: 
   to=<or@gx110.optiplex-networks.com>, 
   orig_to=<kayasaman>, relay=local, 
   delay=0.22, delays=0.06/0.14/0/0.02, dsn=5.1.1, status=bounced (unknown user: "or")
So one would expect your aliases.db (/etc/aliases.db) is problematic. What happens with:
Code:
postmap -q kayasaman hash:/etc/postfix/aliases
Show the content of /etc/postfix/aliases as well.

Also, did you run newaliases after changing any aliases?

Still, you have troubles with your sendmail binary, so that needs to be resolved as well.
 
Old 10-07-2008, 04:34 PM   #14
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
No, don't reinstall Sendmail if you are going to use postfix!
 
Old 10-07-2008, 04:37 PM   #15
kayasaman
Member
 
Registered: Sep 2008
Location: Under the bridge where proper engineers walkover
Distribution: Various Linux, Solaris, BSD, Cisco
Posts: 443

Original Poster
Rep: Reputation: 32
hmm just did an apt-get install sendmail; the system tried to install sendmail-mta which is not what I wanted and it completed, however I re-installed Postfix and yes it looks like I have major dependancy issues!!

Now all I need to do is figure out how to get apt or dpkg to fix them......
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Postfix: help required to configure postfix to redirect email. Wheddod Linux - Software 3 08-20-2008 07:55 AM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
Postfix error: /usr/lib/postfix/smtpd pid 7529 exit status 1 Chiragrs Linux - Networking 7 05-16-2008 12:42 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 04:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration