Postfix and DNS
I have installed Postfix on my server with DNS. I am not sure what information I should provide here so let me explain the setup and goals.
I have SuSE Enterprise 9, Apache, Static IP address. In other words a hosted website/server. I want this server to also be the mail server. I am able to send emails to certain addresses like hotmail, but not others. I am also able to send to a local email address. I am not able to receive amything. In the failure header of trying to send to the postfix address: ********************************************** ** THIS IS A WARNING MESSAGE ONLY ** ** YOU DO NOT NEED TO RESEND YOUR MESSAGE ** ********************************************** The original message was received at Wed, 28 Dec 2005 08:09:37 -0600 (CST) from localhost [127.0.0.1] ----- Transcript of session follows ----- <sapient@hingedmind.com>... Deferred: Connection timed out with mail.hingedmind.com. Warning: message still undelivered after 1 hour Will keep trying until message is 1 day old Reporting-MTA: dns; ccsi.com Arrival-Date: Wed, 28 Dec 2005 08:09:37 -0600 (CST) Final-Recipient: RFC822; sapient@hingedmind.com Action: delayed Status: 4.4.1 Remote-MTA: DNS; mail.hingedmind.com Last-Attempt-Date: Wed, 28 Dec 2005 09:18:52 -0600 (CST) Will-Retry-Until: Thu, 29 Dec 2005 08:09:37 -0600 (CST) -------------------------------- The email logs are as follows: Mail: Dec 28 08:58:32 Mind postfix/pickup[26436]: 00E64225BE: uid=0 from=<root> Dec 28 08:58:32 Mind postfix/cleanup[27033]: 00E64225BE: message-id=<200512280858.31363.sapient@hingedmind.com> Dec 28 08:58:32 Mind postfix/qmgr[25223]: 00E64225BE: from=<root@hingedmind.com>, size=521, nrcpt=2 (queue active) Dec 28 08:58:32 Mind postfix/local[27035]: 00E64225BE: to=<sapient@hingedmind.com>, relay=local, delay=1, status=sent (delivered to mailbox) Dec 28 08:59:02 Mind postfix/smtp[27036]: connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out (port 25) Dec 28 08:59:02 Mind postfix/smtp[27036]: 00E64225BE: to=<bemiller@ccsi.com>, relay=none, delay=31, status=deferred (connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out) Dec 28 09:00:07 Mind postfix/qmgr[25223]: 9331E2258E: from=<root@hingedmind.com>, size=1476, nrcpt=1 (queue active) Dec 28 09:00:37 Mind postfix/smtp[27036]: connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out (port 25) Dec 28 09:00:37 Mind postfix/smtp[27036]: 9331E2258E: to=<dmckk@aol.com>, relay=none, delay=7080, status=deferred (connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out) Messages Log: Dec 28 08:34:49 Mind smbd[26987]: [2005/12/28 08:34:49, 0] lib/util_sock.c:get_peer_addr(1150) Dec 28 08:34:49 Mind smbd[26987]: getpeername failed. Error was Transport endpoint is not connected Dec 28 08:34:49 Mind smbd[26987]: [2005/12/28 08:34:49, 0] lib/util_sock.c:write_socket_data(430) Dec 28 08:34:49 Mind smbd[26987]: write_socket_data: write failure. Error = Connection reset by peer Dec 28 08:34:49 Mind smbd[26987]: [2005/12/28 08:34:49, 0] lib/util_sock.c:write_socket(455) Dec 28 08:34:49 Mind smbd[26987]: write_socket: Error writing 4 bytes to socket 5: ERRNO = Connection reset by peer Dec 28 08:34:49 Mind smbd[26987]: [2005/12/28 08:34:49, 0] lib/util_sock.c:send_smb(647) Dec 28 08:34:49 Mind smbd[26987]: Error writing 4 bytes to client. -1. (Connection reset by peer) Dec 28 08:45:30 Mind -- MARK -- Dec 28 08:59:01 Mind /USR/SBIN/CRON[27042]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly) |
Can someone please tell me why my log is filling up with this. Looks like the queue is trying to send email with the TO: "unknown"?
This started when I uncommented the pop3b in the inetd config. I might add this is more activity than before. Dec 28 14:03:45 Mind postfix/pickup[10370]: E40752262E: uid=1000 from=<sapient> Dec 28 14:03:45 Mind postfix/cleanup[10375]: E40752262E: message-id=<20051228220345.97F3622638@Mind.hingedmind.com> Dec 28 14:03:45 Mind postfix/local[10376]: 97F3622638: to=<sapient@hingedmind.com>, relay=local, delay=0, status=sent (delivered to command: /usr/sbin/sendmail) Dec 28 14:03:45 Mind postfix/qmgr[10163]: 97F3622638: removed Dec 28 14:03:46 Mind postfix/cleanup[10375]: E40752262E: to=<unknown>, relay=none, delay=1, status=bounced (No recipients specified) Dec 28 14:03:46 Mind postfix/cleanup[10374]: 04E7A22638: message-id=<20051228220346.04E7A22638@Mind.hingedmind.com> Dec 28 14:03:46 Mind postfix/qmgr[10163]: 04E7A22638: from=<>, size=51649, nrcpt=1 (queue active) Dec 28 14:03:46 Mind postfix/pickup[10370]: 23EAA2262E: uid=1000 from=<sapient> Dec 28 14:03:46 Mind postfix/cleanup[10374]: 23EAA2262E: message-id=<20051228220346.04E7A22638@Mind.hingedmind.com> Dec 28 14:03:46 Mind postfix/local[10376]: 04E7A22638: to=<sapient@hingedmind.com>, relay=local, delay=0, status=sent (delivered to command: /usr/sbin/sendmail) Dec 28 14:03:46 Mind postfix/qmgr[10163]: 04E7A22638: removed Dec 28 14:03:46 Mind postfix/cleanup[10374]: 23EAA2262E: to=<unknown>, relay=none, delay=0, status=bounced (No recipients specified) Dec 28 14:03:46 Mind postfix/cleanup[10375]: 36A1322638: message-id=<20051228220346.36A1322638@Mind.hingedmind.com> Dec 28 14:03:46 Mind postfix/qmgr[10163]: 36A1322638: from=<>, size=51649, nrcpt=1 (queue active) Dec 28 14:03:46 Mind postfix/pickup[10370]: 59D572262E: uid=1000 from=<sapient> Dec 28 14:03:46 Mind postfix/cleanup[10375]: 59D572262E: message-id=<20051228220346.36A1322638@Mind.hingedmind.com> Dec 28 14:03:46 Mind postfix/local[10376]: 36A1322638: to=<sapient@hingedmind.com>, relay=local, delay=0, status=sent (delivered to command: /usr/sbin/sendmail) __________________ Thank you, |
Dec 28 14:03:45 Mind postfix/local[10376]: 97F3622638: to=<sapient@hingedmind.com>, relay=local, delay=0, status=sent (delivered to command: /usr/sbin/sendmail)
Best I can tell you have a problem with the local delivery agent configured in main.cf (in this case sendmail). Are you sure you are passing the from/to addresses when e-mail is piped to the local delivery agent? It appears that its returning a bounce because it does not know who (what mailbox) to deliver to. |
Quote:
I am new to Postfix so please forgive the ignorance. When you talk about passing the from/to addresses, you lose me. What parameter are you refering to? main.cf: Active parameters queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix mail_owner = postfix mydomain = hingedmind.com myorigin = $mydomain unknown_local_recipient_reject_code = 550 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = maildrop html_directory = /usr/share/doc/packages/postfix/html manpage_directory = /usr/share/man sample_directory = /usr/share/doc/packages/postfix/samples readme_directory = /usr/share/doc/packages/postfix/README_FILES mail_spool_directory = /var/mail canonical_maps = hash:/etc/postfix/canonical virtual_maps = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport deadbeats_destination_concurrency_limit = 50 sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient myhostname = mail.hingedmind.com program_directory = /usr/lib/postfix inet_interfaces = 127.0.0.1 ::1 masquerade_domains = mydestination = hingedmind.com, $myhostname, $mydomain, localhost.$mydomain, www.$mydomain, www.hingedmind.com mynetworks = 10.0.0.1/8, 127.0.0.0/8 defer_transports = disable_dns_lookups = no relayhost = content_filter = mailbox_command = /usr/sbin/sendmail mailbox_transport = smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = strict_rfc821_envelopes = no smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = no smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no alias_maps = hash:/etc/aliases mailbox_size_limit = 0 message_size_limit = 10240000 master.cf: # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - - smtpd #smtps inet n - n - - smtpd # -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes #submission inet n - n - - smtpd # -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes -o smtpd_etrn_restrictions=reject #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 oqmgr #tlsmgr fifo - - n 300 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil deadbeats unix - - n - - smtp -o smtp_connect_timeout=5 -o smtp_helo_timeout=5 #localhost:10025 inet n - n - - smtpd -o content_filter= # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # maildrop. See the Postfix MAILDROP_README file for details. # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient} procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} |
This is from the message log:
Dec 28 16:45:30 Mind -- MARK -- Dec 28 16:59:01 Mind /USR/SBIN/CRON[1537]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.hourly) Dec 28 17:07:04 Mind smbd[5849]: [2005/12/28 17:07:04, 0] lib/util_sock.c:get_peer_addr(1150) Dec 28 17:07:04 Mind smbd[5849]: getpeername failed. Error was Transport endpoint is not connected Dec 28 17:07:04 Mind smbd[5849]: [2005/12/28 17:07:04, 0] lib/util_sock.c:write_socket_data(430) Dec 28 17:07:04 Mind smbd[5849]: write_socket_data: write failure. Error = Connection reset by peer Dec 28 17:07:04 Mind smbd[5849]: [2005/12/28 17:07:04, 0] lib/util_sock.c:write_socket(455) Dec 28 17:07:04 Mind smbd[5849]: write_socket: Error writing 4 bytes to socket 25: ERRNO = Connection reset by peer Dec 28 17:07:04 Mind smbd[5849]: [2005/12/28 17:07:04, 0] lib/util_sock.c:send_smb(647) Dec 28 17:07:04 Mind smbd[5849]: Error writing 4 bytes to client. -1. (Connection reset by peer) Dec 28 17:25:30 Mind -- MARK -- |
I don't know much about the SuSE distro, but the following parameters caught my eye.
Code:
sendmail_path = /usr/sbin/sendmail Code:
sendmail_path = /usr/sbin/sendmail.postfix 1) That you are not accidentally referencing the sendmail executables. Remember, postfix supplies its own sendmail command that is used to inject (pipe) mail back into postfix after being processed externally (like with spamassasin) 2) Why are you setting the mailbox_command to use sendmail. If this is required for your configuration, check that the paths referenced in item one above are correct. Note: To give you an idea of using a pipe in postfix; I configure postfix to call spamassassin on all inbound e-mails. Once spamassassin is finished processing the e-mail, it needs to send the email back to postfix (using a pipe) so that it can be queued for final delivery to either a mailbox -or- relayed internally (to like an exchange server). In my case relayed to an exchange server. The way I accomplish this by defining a pipe (named filter) in master.cf Code:
filter unix - n n - 20 pipe |
Quote:
|
Scowles,
Again, thanks... This is my master. I have done a complete search and there is no sendmail.postfix file. It must be the SuSE distro. I did find this in my main.cf # INSTALL-TIME CONFIGURATION INFORMATION # # The following parameters are used when installing a new Postfix version. # # sendmail_path: The full pathname of the Postfix sendmail command. # This is the Sendmail-compatible mail posting interface. # sendmail_path = /usr/sbin/sendmail maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} cyrus unix - n n - - pipe user=cyrus argv=/usr/lib/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient vscan unix - n n - 10 pipe user=vscan argv=/usr/sbin/amavis ${sender} ${recipient} procmail unix - n n - - pipe flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc ${sender} ${recipient} |
I could be wrong, but in looking at the logs, it appears it is timing out.
Dec 29 06:27:21 Mind postfix/pickup[24304]: 8060F2269B: uid=0 from=<root> Dec 29 06:27:23 Mind postfix/cleanup[24401]: 8060F2269B: message-id=<200512290626.52870.sapient@hingedmind.com> Dec 29 06:27:23 Mind postfix/qmgr[24305]: 8060F2269B: from=<root@hingedmind.com>, size=505, nrcpt=2 (queue active) Dec 29 06:27:27 Mind postfix/local[24403]: 8060F2269B: to=<sapient@hingedmind.com>, relay=local, delay=10, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN) Dec 29 06:27:54 Mind postfix/smtp[24404]: connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out (port 25) Dec 29 06:27:58 Mind postfix/smtp[24404]: 8060F2269B: to=<bemiller@ccsi.com>, relay=none, delay=41, status=deferred (connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out) Could this be related to my MX records? Remember this is a static IP address. I have a business line piped in here. Note: LAN IP: 10.0.0.1 Machine IP: 10.0.0.10 Static IP: 24.176.227.138 hostname: Mind Domain: www.hingedmind.com File: 10.0.0.conf # # Configuration file for the reverse lookup of the 10.0.0.1/24 network. # zone "0.0.10.in-addr.arpa" in { type master; file "master/10.0.0.in-addr.arpa.zone"; }; 10.0.0.in-addr.arpa.zone $TTL 2D @ IN SOA hingedmind.com. sapient.hingedmind.com. ( 1999092901 ; serial 1D ; refresh 2H ; retry 1W ; expiry 2D ) ; minimum IN NS ns.hingedmind.com. 1 IN PTR hingedmind.com. 2 IN PTR www.hingedmind.com. hingedmind.com.conf # # Configuration file for the hingedmind.com zone. # zone "hingedmind.com" in { type master; file "master/hingedmind.com.zone"; }; hingedmind.com.zone $TTL 2D @ IN SOA hingedmind.com. postmaster.hingedmind.com. ( 1999092901 ; serial 1D ; refresh 2H ; retry 1W ; expiry 2D ) ; minimum IN NS hingedmind.com. IN MX 10 mail.hingedmind.com. TXT "hingedmind" localhost IN A 127.0.0.1 Mind.hingedmind.com. IN A 10.0.0.10 www.hingedmind.com. IN A 10.0.0.10 hingedmind.com. IN A 10.0.0.10 www IN CNAME hingedmind.com ftp IN CNAME www.hingedmind.com. mail IN CNAME hingedmind.com. news IN CNAME hingedmind.com. Thanks |
Thought I should add this...
Yes, this is a static IP domain. www.hingedmind.com (24.176.227.138).. And yes, a DNS server... However, I depend on my Netgear router to hand out LAN IPs and forward any http requests to my domain i.e. 10.0.0.10. I would like this server to be a mail server so that I can send email to people who sign up for the forums or request passwords from say a forum, etc... I am not (at this time) interested in setting up email accounts and such. Except for of course the local stuff. It appears that 25 is open... Mind:/home/Sapient/postfix # nmap -vv localhost Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2005-12-29 07:54 PST Host localhost (127.0.0.1) appears to be up ... good. Initiating SYN Stealth Scan against localhost (127.0.0.1) at 07:54 Adding open port 110/tcp Adding open port 22/tcp Adding open port 53/tcp Adding open port 3306/tcp Adding open port 111/tcp Adding open port 25/tcp Adding open port 445/tcp Adding open port 80/tcp Adding open port 389/tcp Adding open port 139/tcp Adding open port 427/tcp Adding open port 953/tcp Adding open port 631/tcp The SYN Stealth Scan took 1 second to scan 1659 ports. Interesting ports on localhost (127.0.0.1): (The 1646 ports scanned but not shown below are in state: closed) PORT STATE SERVICE 22/tcp open ssh 25/tcp open smtp 53/tcp open domain 80/tcp open http 110/tcp open pop3 111/tcp open rpcbind 139/tcp open netbios-ssn 389/tcp open ldap 427/tcp open svrloc 445/tcp open microsoft-ds 631/tcp open ipp 953/tcp open rndc 3306/tcp open mysql Nmap run completed -- 1 IP address (1 host up) scanned in 1.094 seconds Mind:/home/Sapient/postfix # |
try running netstat -nap | grep 25 and paste the results
|
Here you go:
Mind:/home/Sapient/postfix # netstat -nap | grep 25 tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 5425/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 24901/master tcp 0 0 10.0.0.10:3250 10.0.0.10:389 ESTABLISHED 17302/named tcp 0 0 10.0.0.10:2186 10.0.0.10:389 ESTABLISHED 25207/httpd2-prefor tcp 0 0 10.0.0.10:2204 10.0.0.10:389 ESTABLISHED 25233/httpd2-prefor tcp 0 0 10.0.0.10:2197 10.0.0.10:389 ESTABLISHED 25221/httpd2-prefor tcp 0 0 10.0.0.10:2199 10.0.0.10:389 ESTABLISHED 25224/httpd2-prefor tcp 0 0 10.0.0.10:2192 10.0.0.10:389 ESTABLISHED 25217/httpd2-prefor tcp 0 0 10.0.0.10:2223 10.0.0.10:389 ESTABLISHED 25309/httpd2-prefor tcp 0 0 10.0.0.10:2210 10.0.0.10:389 ESTABLISHED 25260/httpd2-prefor tcp 0 0 10.0.0.10:2226 10.0.0.10:389 ESTABLISHED 25328/httpd2-prefor tcp 0 0 10.0.0.10:2246 10.0.0.10:389 ESTABLISHED 25785/httpd2-prefor tcp 0 0 10.0.0.10:389 10.0.0.10:3250 ESTABLISHED 22746/slapd tcp 0 0 10.0.0.10:139 10.0.0.40:2620 ESTABLISHED 25781/smbd tcp 0 0 ::1:25 :::* LISTEN 24901/master tcp 0 186 10.0.0.10:80 216.8.44.139:4056 ESTABLISHED 25207/httpd2-prefor tcp 0 0 10.0.0.10:80 63.225.106.190:3943 TIME_WAIT - tcp 0 0 10.0.0.10:80 68.235.0.212:4941 ESTABLISHED 25217/httpd2-prefor tcp 0 0 10.0.0.10:80 24.176.227.138:1508 ESTABLISHED 25233/httpd2-prefor tcp 0 0 10.0.0.10:80 63.225.106.190:3946 TIME_WAIT - tcp 0 0 10.0.0.10:80 63.225.106.190:3948 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4750 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4751 TIME_WAIT - tcp 0 0 10.0.0.10:80 216.8.44.139:4052 ESTABLISHED 25328/httpd2-prefor tcp 0 0 10.0.0.10:80 63.225.106.190:3952 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4754 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4753 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4759 ESTABLISHED 25309/httpd2-prefor tcp 0 0 10.0.0.10:80 63.225.106.190:3958 ESTABLISHED 24560/httpd2-prefor tcp 0 0 10.0.0.10:80 69.253.33.171:4756 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4757 TIME_WAIT - tcp 0 0 10.0.0.10:80 69.253.33.171:4760 ESTABLISHED 24903/httpd2-prefor udp 0 0 127.0.0.1:1543 0.0.0.0:* 25781/smbd udp 0 0 255.255.255.255:427 0.0.0.0:* 5138/slpd udp 0 0 239.255.255.253:427 0.0.0.0:* 5138/slpd udp 0 0 224.0.0.251:5353 0.0.0.0:* 5138/slpd udp 0 0 0.0.0.0:631 0.0.0.0:* 5425/cupsd unix 2 [ ACC ] STREAM LISTENING 69482556 24901/master private/smtp unix 2 [ ACC ] STREAM LISTENING 69482560 24901/master private/relay unix 2 [ ACC ] STREAM LISTENING 69482564 24901/master public/showq unix 2 [ ACC ] STREAM LISTENING 69482568 24901/master private/error unix 2 [ ACC ] STREAM LISTENING 69482572 24901/master private/local unix 2 [ ACC ] STREAM LISTENING 69482576 24901/master private/virtual unix 2 [ ACC ] STREAM LISTENING 69482580 24901/master private/lmtp unix 2 [ ACC ] STREAM LISTENING 69482584 24901/master private/anvil unix 2 [ ACC ] STREAM LISTENING 69482588 24901/master private/maildrop unix 2 [ ACC ] STREAM LISTENING 69482592 24901/master private/cyrus unix 2 [ ACC ] STREAM LISTENING 69482596 24901/master private/uucp unix 2 [ ACC ] STREAM LISTENING 69482528 24901/master private/rewrite unix 2 [ ACC ] STREAM LISTENING 69482532 24901/master private/bounce unix 2 [ ACC ] STREAM LISTENING 69482536 24901/master private/defer unix 2 [ ACC ] STREAM LISTENING 69482521 24901/master public/cleanup unix 2 [ ACC ] STREAM LISTENING 69482540 24901/master private/trace unix 2 [ ACC ] STREAM LISTENING 69482544 24901/master private/verify unix 2 [ ACC ] STREAM LISTENING 69562543 24901/master private/deadbeats unix 2 [ ACC ] STREAM LISTENING 69482548 24901/master public/flush unix 2 [ ACC ] STREAM LISTENING 69482552 24901/master private/proxymap unix 2 [ ] DGRAM 69552859 25140/postdrop unix 3 [ ] STREAM CONNECTED 69552858 25139/sendmail unix 3 [ ] STREAM CONNECTED 69552857 25140/postdrop unix 2 [ ] DGRAM 69552844 25139/sendmail unix 3 [ ] STREAM CONNECTED 34875325 7367/kdeinit: ksmse /tmp/.ICE-unix/7367 unix 3 [ ] STREAM CONNECTED 34875225 2121/kfind unix 3 [ ] STREAM CONNECTED 29014887 25363/kmail.kde.org unix 3 [ ] STREAM CONNECTED 29014878 25363/kmail.kde.org unix 3 [ ] STREAM CONNECTED 29014854 25363/kmail.kde.org unix 2 [ ] STREAM CONNECTED 29014843 25363/kmail.kde.org /tmp/ksocket-root/kdeinit__0 unix 3 [ ] STREAM CONNECTED 13925 7309/kdeinit: dcops /tmp/.ICE-unix/dcop7309-1134732760 unix 3 [ ] STREAM CONNECTED 13825 7368/kdeinit: kwin unix 2 [ ] DGRAM 12256 4407/nmbd Mind:/home/Sapient/postfix # |
mmm theres your problem your postfix is only listening on your LAN, they should look something like so
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 16210/master tcp 0 0 :::25 :::* LISTEN 16210/master try replaceing this in your main.cf smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination inet_interfaces = all |
Thanks Sern,
How were you able to see that? Made the changes above and here is a lmail log when I tried sending to an outside address. Dec 29 09:11:38 Mind postfix/postfix-script: refreshing the Postfix mail system Dec 29 09:11:38 Mind postfix/master[26684]: reload configuration Dec 29 09:12:51 Mind postfix/pickup[26727]: DD4A91521A: uid=0 from=<root> Dec 29 09:12:52 Mind postfix/cleanup[26739]: DD4A91521A: message-id=<200512290912.51273.sapient@hingedmind.com> Dec 29 09:12:52 Mind postfix/qmgr[26728]: DD4A91521A: from=<root@hingedmind.com>, size=505, nrcpt=2 (queue active) Dec 29 09:12:52 Mind postfix/local[26741]: DD4A91521A: to=<sapient@hingedmind.com>, relay=local, delay=1, status=sent (delivered to command: /usr/bin/procmail -Y -a $DOMAIN) Dec 29 09:13:22 Mind postfix/smtp[26742]: connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out (port 25) Dec 29 09:13:22 Mind postfix/smtp[26742]: DD4A91521A: to=<bemiller@ccsi.com>, relay=none, delay=31, status=deferred (connect to gateway.hingedmind.com[24.176.227.138]: Connection timed out) |
paste your main.cf please, if easier you can contact me on AIM , sern18
|
New run:
Mind:/home/Sapient/postfix # netstat -nap | grep 25 tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN 5425/cupsd tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 26684/master tcp 0 0 10.0.0.10:3250 10.0.0.10:389 ESTABLISHED 17302/named tcp 0 0 10.0.0.10:2186 10.0.0.10:389 ESTABLISHED 25207/httpd2-prefor tcp 0 0 10.0.0.10:2204 10.0.0.10:389 ESTABLISHED 25233/httpd2-prefor tcp 0 0 10.0.0.10:2197 10.0.0.10:389 ESTABLISHED 25221/httpd2-prefor tcp 0 0 10.0.0.10:2192 10.0.0.10:389 ESTABLISHED 25217/httpd2-prefor tcp 0 0 10.0.0.10:2210 10.0.0.10:389 ESTABLISHED 25260/httpd2-prefor tcp 0 0 10.0.0.10:2226 10.0.0.10:389 ESTABLISHED 25328/httpd2-prefor tcp 0 0 10.0.0.10:2246 10.0.0.10:389 ESTABLISHED 25785/httpd2-prefor tcp 0 0 10.0.0.10:2295 10.0.0.10:389 ESTABLISHED 25991/httpd2-prefor tcp 0 0 10.0.0.10:389 10.0.0.10:3250 ESTABLISHED 22746/slapd tcp 0 0 :::25 :::* LISTEN 26684/master tcp 0 0 10.0.0.10:80 63.225.106.190:4384 TIME_WAIT - tcp 0 0 10.0.0.10:80 63.225.106.190:4388 TIME_WAIT - tcp 0 0 10.0.0.10:80 63.225.106.190:4392 TIME_WAIT - tcp 0 0 10.0.0.10:80 68.235.0.212:4259 ESTABLISHED 24861/httpd2-prefor tcp 0 0 10.0.0.10:80 216.8.44.139:4944 ESTABLISHED 25260/httpd2-prefor tcp 0 0 10.0.0.10:80 68.235.0.212:4257 TIME_WAIT - tcp 0 0 10.0.0.10:80 63.225.106.190:4397 ESTABLISHED 25328/httpd2-prefor tcp 0 0 10.0.0.10:80 68.235.0.212:4251 TIME_WAIT - tcp 0 0 10.0.0.10:80 24.176.227.138:2200 ESTABLISHED 25785/httpd2-prefor tcp 0 0 10.0.0.10:80 68.235.0.212:4255 TIME_WAIT - tcp 0 0 10.0.0.10:80 216.8.44.139:4940 ESTABLISHED 25217/httpd2-prefor tcp 0 0 10.0.0.10:80 68.235.0.212:4253 TIME_WAIT - udp 0 0 255.255.255.255:427 0.0.0.0:* 5138/slpd udp 0 0 239.255.255.253:427 0.0.0.0:* 5138/slpd udp 0 0 224.0.0.251:5353 0.0.0.0:* 5138/slpd udp 0 0 0.0.0.0:631 0.0.0.0:* 5425/cupsd unix 3 [ ] STREAM CONNECTED 82089025 26684/master unix 3 [ ] STREAM CONNECTED 82085254 8230/kdeinit: kate /tmp/ksocket-root/kateOjRqZa.slave-socket unix 3 [ ] STREAM CONNECTED 82085253 24389/kfindWozbda.s unix 2 [ ] DGRAM 69552859 25140/postdrop unix 3 [ ] STREAM CONNECTED 69552858 25139/sendmail unix 3 [ ] STREAM CONNECTED 69552857 25140/postdrop unix 2 [ ] DGRAM 69552844 25139/sendmail unix 3 [ ] STREAM CONNECTED 34875325 7367/kdeinit: ksmse /tmp/.ICE-unix/7367 unix 3 [ ] STREAM CONNECTED 34875225 2121/kfind unix 3 [ ] STREAM CONNECTED 29014887 25363/kmail.kde.org unix 3 [ ] STREAM CONNECTED 29014878 25363/kmail.kde.org unix 3 [ ] STREAM CONNECTED 29014854 25363/kmail.kde.org unix 2 [ ] STREAM CONNECTED 29014843 25363/kmail.kde.org /tmp/ksocket-root/kdeinit__0 unix 3 [ ] STREAM CONNECTED 13925 7309/kdeinit: dcops /tmp/.ICE-unix/dcop7309-1134732760 unix 3 [ ] STREAM CONNECTED 13825 7368/kdeinit: kwin unix 2 [ ] DGRAM 12256 4407/nmbd |
Showing only active parameters:
queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/lib/postfix mail_owner = postfix mydomain = hingedmind.com myorigin = $mydomain unknown_local_recipient_reject_code = 550 # IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN # ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER. # #mailbox_command = /some/where/procmail #mailbox_command = /some/where/procmail -a "$EXTENSION" debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail newaliases_path = /usr/bin/newaliases mailq_path = /usr/bin/mailq setgid_group = maildrop html_directory = /usr/share/doc/packages/postfix/html manpage_directory = /usr/share/man sample_directory = /usr/share/doc/packages/postfix/samples readme_directory = /usr/share/doc/packages/postfix/README_FILES mail_spool_directory = /var/mail canonical_maps = hash:/etc/postfix/canonical virtual_maps = hash:/etc/postfix/virtual relocated_maps = hash:/etc/postfix/relocated transport_maps = hash:/etc/postfix/transport deadbeats_destination_concurrency_limit = 50 sender_canonical_maps = hash:/etc/postfix/sender_canonical masquerade_exceptions = root masquerade_classes = envelope_sender, header_sender, header_recipient myhostname = mail.hingedmind.com program_directory = /usr/lib/postfix inet_interfaces = all masquerade_domains = mydestination = hingedmind.com, $myhostname, $mydomain, localhost.$mydomain, www.$mydomain, www.hingedmind.com mynetworks = 10.0.0.1/8, 127.0.0.0/8 defer_transports = disable_dns_lookups = no relayhost = content_filter = mailbox_command = /usr/bin/procmail -Y -a $DOMAIN mailbox_transport = smtpd_sender_restrictions = hash:/etc/postfix/access smtpd_client_restrictions = smtpd_helo_required = no smtpd_helo_restrictions = strict_rfc821_envelopes = no smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination #smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination smtp_sasl_auth_enable = no smtpd_sasl_auth_enable = no smtpd_use_tls = no smtp_use_tls = no alias_maps = hash:/etc/aliases mailbox_size_limit = 0 message_size_limit = 10240000 |
Quote:
I will go to aim, you will see me as vacuoussapient (Brian in real life).... The challenge will be going from AIM to LINUX. Both my Linux Server and my workstation are side by side and I am using a single monitor and keyboard. |
All times are GMT -5. The time now is 09:01 AM. |