Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
postfix local delivery problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
infiniteedge
Tux's lil' helper
Tux's lil' helper


Joined: 03 Mar 2004
Posts: 149

PostPosted: Mon Aug 08, 2005 2:39 am    Post subject: postfix local delivery problems Reply with quote

I am trying to make a mailserver for my domain cryptocity.net . The problem I'm currently having is that sending mail to any of the users on the system results in said mail to get stuck in the queue forever. I'm just starting with postfix so there are no virtual users, no mysql, no nothing except a very basic single domain setup.

I can log in to the server, start mutt, and send mail to abitrary recipitents, but mutt detects the from: address as dan@phobos.poly.edu. It would think this because my hostname is phobos and the network my box is connected to is my university network at poly.edu. I believe this may be related as to why mail does not get delivered once postfix receives it.

if I look at mailq, this is what I get:
Code:
phobos ~ # mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
78D26EDCA0      358 Sun Aug  7 16:06:43  amanda@the-vagabonds.com
                                         dan@cryptocity.net

82479EDCBF     2182 Sun Aug  7 16:11:22  MAILER-DAEMON
                                         root@cryptocity.net

9F64DEDCCF     1223 Sun Aug  7 16:20:40  dguido@gmail.com
                                         dan@cryptocity.net

B4687EDCAB      395 Sun Aug  7 15:47:58  dan@cryptocity.net
                                         root@cryptocity.net

C8EADEDC9B      378 Sun Aug  7 15:27:43  george@bush.com
                                         dan@cryptocity.net

E635ADB0A2     1232 Sun Aug  7 17:20:58  dguido@gmail.com
                                         dan@cryptocity.net

-- 7 Kbytes in 6 Requests.
phobos ~ #


These are messages I've sent to myself in varying ways that all seemed to have worked. Some were over telnet, some were with mutt, and others with my gmail account.

Code:
postconf -n
alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
debug_peer_list = 127.0.0.1
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
html_directory = no
inet_interfaces = all
local_destination_concurrency_limit = 2
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = localhost.$mydomain, localhost, $mydomain
mydomain = cryptocity.net
myhostname = cryptocity.net
mynetworks = 128.238.66.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.5-r2/readme
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP Mail Server
smtpd_recipient_restrictions = permit_mynetworks,  permit_sasl_authenticated,  reject_non_fqdn_hostname,  reject_non_fqdn_sender,  reject_unauth_destination,  reject_unauth_pipelining,     reject_invalid_hostname,  reject_rbl_client opm.blitzed.org,  reject_rbl_client list.dsbl.org,  reject_rbl_client bl.spamcop.net,  reject_rbl_client sbl-xbl.spamhaus.org
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550


here is some output from syslog that may be related

Code:
phobos everything # tail -n 50 current
Aug  7 17:20:59 [postfix/smtpd] vstream_fflush_some: fd 14 flush 1238
Aug  7 17:20:59 [postfix/smtpd] public/cleanup socket: wanted attribute: status
Aug  7 17:20:59 [postfix/cleanup] E635ADB0A2: message-id=<9c22049305080719162313                                                                              0ca7@mail.gmail.com>
Aug  7 17:20:59 [postfix/smtpd] vstream_buf_get_ready: fd 14 got 18
Aug  7 17:20:59 [postfix/smtpd] input attribute name: status
Aug  7 17:20:59 [postfix/smtpd] input attribute value: 0
Aug  7 17:20:59 [postfix/smtpd] public/cleanup socket: wanted attribute: reason
Aug  7 17:20:59 [postfix/smtpd] input attribute name: reason
Aug  7 17:20:59 [postfix/smtpd] input attribute value: (end)
Aug  7 17:20:59 [postfix/smtpd] public/cleanup socket: wanted attribute: (list t                                                                              erminator)
Aug  7 17:20:59 [postfix/smtpd] input attribute name: (end)
Aug  7 17:20:59 [postfix/smtpd] > wproxy.gmail.com[64.233.184.201]: 250 Ok: queu                                                                              ed as E635ADB0A2
Aug  7 17:20:59 [postfix/smtpd] watchdog_pat: 0x80a7098
Aug  7 17:20:59 [postfix/smtpd] vstream_fflush_some: fd 10 flush 30
Aug  7 17:20:59 [postfix/qmgr] E635ADB0A2: from=<dguido@gmail.com>, size=1232, n                                                                              rcpt=1 (queue active)
Aug  7 17:20:59 [postfix/local] fatal: gethostbyname("phobos") does not resolve                                                                               as a fully qualified domain name.
Aug  7 17:20:59 [postfix/smtpd] vstream_buf_get_ready: fd 10 got 6
Aug  7 17:20:59 [postfix/smtpd] < wproxy.gmail.com[64.233.184.201]: QUIT
Aug  7 17:20:59 [postfix/smtpd] > wproxy.gmail.com[64.233.184.201]: 221 Bye
Aug  7 17:20:59 [postfix/smtpd] vstream_fflush_some: fd 10 flush 9
Aug  7 17:20:59 [postfix/smtpd] vstream_fflush_some: fd 10 flush 0
Aug  7 17:20:59 [postfix/smtpd] disconnect from wproxy.gmail.com[64.233.184.201]
Aug  7 17:20:59 [postfix/smtpd] vstream_fflush_some: fd 10 flush 0
Aug  7 17:20:59 [postfix/smtpd] master_notify: status 1
Aug  7 17:20:59 [postfix/smtpd] connection closed
Aug  7 17:20:59 [postfix/smtpd] event_request_timer: set 0x80599f0 0x0 100
Aug  7 17:20:59 [postfix/smtpd] watchdog_stop: 0x80a7098
Aug  7 17:20:59 [postfix/smtpd] watchdog_start: 0x80a7098
Aug  7 17:20:59 [postfix/smtpd] event_loop: select_delay 99
Aug  7 17:21:00 [postfix/qmgr] warning: premature end-of-input on private/local                                                                               socket while reading input attribute name
Aug  7 17:21:00 [postfix/qmgr] warning: private/local socket: malformed response
Aug  7 17:21:00 [postfix/qmgr] warning: transport local failure -- see a previou                                                                              s warning/fatal/panic logfile record for the problem description
Aug  7 17:21:00 [postfix/master] warning: process /usr/lib/postfix/local pid 110                                                                              91 exit status 1
Aug  7 17:21:00 [postfix/master] warning: /usr/lib/postfix/local: bad command st                                                                              artup -- throttling
Aug  7 17:22:38 [postfix/smtpd] event_loop: timer 0x80694d0 0x80aac60
Aug  7 17:22:38 [postfix/smtpd] rewrite stream disconnect
Aug  7 17:22:38 [postfix/smtpd] event_disable_readwrite: fd 13
Aug  7 17:22:38 [postfix/smtpd] event_cancel_timer: 0x80694d0 0x80aac60 -1
Aug  7 17:22:38 [postfix/smtpd] event_cancel_timer: 0x8069560 0x80aac60 900
Aug  7 17:22:38 [postfix/smtpd] event_loop: timer 0x80694d0 0x809a510
Aug  7 17:22:38 [postfix/smtpd] proxymap stream disconnect
Aug  7 17:22:38 [postfix/smtpd] event_disable_readwrite: fd 9
Aug  7 17:22:38 [postfix/smtpd] event_cancel_timer: 0x80694d0 0x809a510 -1
Aug  7 17:22:38 [postfix/smtpd] event_cancel_timer: 0x8069560 0x809a510 900
Aug  7 17:22:38 [postfix/smtpd] watchdog_stop: 0x80a7098
Aug  7 17:22:38 [postfix/smtpd] watchdog_start: 0x80a7098
Aug  7 17:22:38 [postfix/smtpd] event_loop: select_delay 1
Aug  7 17:22:39 [postfix/smtpd] event_loop: timer 0x80599f0 0x0
Aug  7 17:22:39 [postfix/smtpd] idle timeout -- exiting


and this as well:

Code:
phobos everything # hostname
phobos
phobos everything # domainname
(none)
phobos everything #


Can anyone help?
Back to top
View user's profile Send private message
grimm26
Guru
Guru


Joined: 23 May 2004
Posts: 313
Location: Chicagoland, IL

PostPosted: Mon Aug 08, 2005 8:04 pm    Post subject: Reply with quote

Try setting your DNS domain in /etc/conf.d/domainname to cryptocity.net.
In your postfix main.cf, set
Code:
myhostname = phobos.cryptocity.net
and add a DNS entry for phobos.cryptocity.net.
_________________
"Blessed is he who finds happiness in his own foolishness, for he will always be happy".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum