LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-31-2012, 01:03 PM   #1
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
postfix question


I am starting to play around with postfix a bit more at work. Sadly I am
not getting much direction and or assistance in learning what I need to
learn to get postfix to function 100% of the time on customers systems.

The process I am using is as follows:

yum install postfix
mkfifo /var/spool/postfix/pickup
service postfix start
chkconfig postfix on
then in a backup script i use the following command:

mailx -s "ftp logs ${license}" user1@123.net,user2@456.net < $logname

the situation is most of the time e-mails will go to only 1 recipient,
this is not acceptable. I need the e-mails to go to all clients all of
the time. Yes there is always the possibly they are getting caught up in
spam filters, but once that is eliminated as the issue the e-mails should
get to the target.

Perfect example is today, of 22 e-mails I should have received this
morning I only received 18. When I called the other person who should
have received e-mails as well from the same 22 locations, he only received
8.

Yesterday from the exact same stores I only received 9, while he received
14. This is to inconsistent for me to start having a clue how to fix. my
guess is that things are not configured properly and that would fall on me
to fix as I am not getting help from the company.

On a much smaller note I would also like to learn howto configure the
postfix.conf (what ever that file is) that it always sends the mailx from
the same user no matter what account is sending, specifically when it is
root that is sending the e-mail. I need root to be able to send the mailx
as user. Sadly the su user -c "mailx subject user1@123.net < file" does
not work due to the user being in a very unique environment and I can not
call the subject. As you can see from the line I place in the scripts I
need the subject line to be longer then just 1 word.

Thanks again for the help in advance, and I do plan on being at the
install fest next weekend if someone needs/wants to be there to help with
it at that time.
 
Old 04-01-2012, 04:59 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
The problem here doesn't appear to be with postfix but with the way you use
mailx; multiple recipients for a message aren't listed separated by commas,
but with spaces.


Cheers,
Tink
 
1 members found this post helpful.
Old 04-01-2012, 09:49 PM   #3
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
when i tried it with spaces i got errors. ill post em in the morning when i get to work.
 
Old 04-06-2012, 02:57 PM   #4
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora
Posts: 2,630

Original Poster
Rep: Reputation: 495Reputation: 495Reputation: 495Reputation: 495Reputation: 495
many thanks. i was able to resolve that issue as you suggested. i must have fat fingered it the first time i tried with the space.
 
Old 04-06-2012, 03:27 PM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi lleb

now that you have it solved, I could probably suggest you before
to try this sendEmail script for sending MIME emails with success.

I use it and it's great.


good luck
 
  


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 Question swamprat Linux - Newbie 2 05-10-2008 12:27 AM
Postfix Configuration Question: Postfix server as a catch-all on office LAN enso491 Linux - Server 5 04-14-2008 05:35 PM
postfix question lodder Debian 1 08-07-2006 10:11 AM
postfix question macBasH Red Hat 0 09-28-2005 09:32 AM
Postfix question DavidPhillips Linux - General 1 02-18-2002 01:02 AM


All times are GMT -5. The time now is 11:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration