LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   postfix problem (https://www.linuxquestions.org/questions/linux-software-2/postfix-problem-224167/)

meblost 08-30-2004 12:14 AM

postfix problem
 
I have postfix up and running on Mandrake 10.0. Currently, when I send a message, the sent email's "from" field looks like this:

sender@domain.tld (Sender Name)

I would like to change that to

sender@domain.tld

(i.e. remove the sender's full name from the "from" field) Any ideas?
Here is my current main.cf:


readme_directory = /usr/share/doc/postfix-2.1.1/README_FILES
sample_directory = /usr/share/doc/postfix-2.1.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
command_directory = /usr/sbin
manpage_directory = /usr/share/man
daemon_directory = /usr/lib/postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
queue_directory = /var/spool/postfix
mail_owner = postfix
inet_interfaces = localhost
mynetworks_style = host
delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
mydomain = expletive_deleted
html_directory = /usr/share/doc/postfix-2.1.1/html
myorigin = $mydomain

Thanks!

bigrigdriver 08-30-2004 12:52 AM

In /etc/postfix/main.cf, check the section titled SENDING MAIL. It details how to make mail appear to come from a certain address.

meblost 08-30-2004 10:14 AM

Actually, I posted main.cf above and I don't see anything regarding the sender header format. I also looked at postconf(5), but its all Greek to me.

meblost 08-31-2004 08:57 AM

Also, I am not able to send mail to user@domain.tld but I am able to send mail to user@localhost. The logs show either connection refused or connection timed out every time. Nor can I telnet to domain.tld port 25. I am sure that domain.tld is being resolved correctly.

When I run netstat I see

Code:

tcp        0      0 localhost:smtp          *:*                    LISTEN
Does this mean that smtp is listening for connections only from/on localhost? If so, how can I change?


Thanks


p.s. I am able to send mail to another domain.

meblost 08-31-2004 10:51 PM

Second problem solved. Made some changes to main.cf:

inet_interfaces = all
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost

Am able to send in to and out of my machine now. Still haven't figured out how to remove sender's full name though...



All times are GMT -5. The time now is 07:08 AM.