Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-03-2010, 04:41 PM   #1
LQ Newbie
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Rep: Reputation: 1
configuring postfix, trying to deliver mail, even local doesn’t arrives


I'm trying to configure postfix at my server. The thing is that using an external relayhost (gmail) I can actually send emails from my machine, but if I try to use my local machine (no relayhost), then no mail arrives, even if I try to send email to my own local machine.

Logs don't say any error occurred, so I'm not sure what can be happening... any ideas?

If it's of any use, I use Debian Lenny

here's my file:

# See /usr/share/postfix/ for a commented, more complete version                                                                                 
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
myorigin =

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtp_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
#smtp_tls_CAfile = /etc/postfix/cacert.pem

#smtp_sasl_auth_enable = yes
#smtp_sasl_password_maps = hash:/etc/postfix/sasl/passwd
#smtp_sasl_security_options = noanonymous

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

mydomain = $myorigin
myhostname = hostname.$mydomain
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
mynetworks_style = host
#   relayhost = []:587
relayhost =

notify_classes = 2bounce, delay, policy, protocol, resource, software

inet_interfaces = all

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0

recipient_delimiter = +

html_directory = /usr/share/doc/postfix/html

Heres the output in the logs:

Aug  3 14:36:02 hostname postfix/pickup[22767]: F16E31A3F: uid=1000 from=<jstitch>
Aug  3 14:36:03 hostname postfix/cleanup[22959]: F16E31A3F: message-id=<>
Aug  3 14:36:03 hostname postfix/qmgr[22768]: F16E31A3F: from=<>, size=1596, nrcpt=1 (queue active)
Aug  3 14:36:03 hostname procmail[22962]: Error while writing to "/var/log/procmail"
Aug  3 14:36:03 hostname postfix/local[22961]: F16E31A3F: to=<>, orig_to=<jstitch>, relay=local, delay=1.5, delays=1.5/0.02/0/0.03, dsn=2.0.0, status=sent (delivered to command: procmail -a "$EXTENSION")
Aug  3 14:36:03 hostname postfix/qmgr[22768]: F16E31A3F: removed
perhaps thar error while writing to var/log/procmail suggests a problem with procmail?

actually /var/log/procmail is an empty file with 640 permissions, owner root, group adm (all other syslog files have that same characteristics)

Last edited by jstitch; 08-03-2010 at 04:43 PM. Reason: commented out lines that actually don't belong to conf file
Old 08-04-2010, 01:48 AM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

Have a look at these sites. Several test are listed there in order to find what might be wrong. Postfix is only a part of a mail server, namely the MTA, the Mail Transfer Agent. You'll need other tools to route your mail. In these links you'll find what you need.

Kind regards,

1 members found this post helpful.
Old 08-04-2010, 10:41 AM   #3
LQ Newbie
Registered: Dec 2009
Location: Mexico city
Distribution: Debian, CentOS, openSuSe
Posts: 19

Original Poster
Rep: Reputation: 1
Thank you very much...
Actually, I discovered that the relay_host parameter should have something, since I have an ISP providing me with my IP address and etc...

What I was originally trying to do was to setup a mail server, behind the ISP yes, but without relaying on any other server. But I'm stumbling upon walls and walls, and I decided to relay on gmail for now... I managed to configure everything so I can send messages, which appears to be from my gmail account (unless looking at the source of the email, it happens to show the real data of my server and I guess that tweaking at the From and Reply-To fields in the sent emails would do) and also, now I can manage to receive emails from external servers in to my inbox, so, I guess that would (or must?) do...

Thanks again!


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 to deliver local the relay. moose4 Linux - Server 1 05-25-2010 08:42 PM
Postfix Mail Server: cant deliver mail in Users Inbox madfed Linux - Server 1 06-14-2009 06:08 AM
Can't deliver mail (postfix) to local user wheel Linux - General 1 04-05-2006 08:45 AM
Postfix: Need to deliver all local mail to 1 account, then forward OneBinary Linux - Software 3 01-05-2006 05:49 PM
POSTFIX holding mail in qeue, won't deliver, connection refused bentman78 Linux - Software 2 10-27-2004 08:11 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:15 PM.

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